Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pybind11: migrate to [email protected] #86775

Closed
wants to merge 1 commit into from

Conversation

henryiii
Copy link
Contributor

@henryiii henryiii commented Oct 7, 2021

pybind11: migrate to [email protected]

@BrewTestBot BrewTestBot added the python Python use is a significant feature of the PR or issue label Oct 7, 2021
@henryiii
Copy link
Contributor Author

henryiii commented Oct 7, 2021

Looks like dependent formula need to be moved too (which makes sense). It’s just a few headers and config files.

@henryiii
Copy link
Contributor Author

henryiii commented Oct 7, 2021

Honestly, multiple installs like six would probably be fine.

@carlocab
Copy link
Member

carlocab commented Oct 7, 2021

Honestly, multiple installs like six would probably be fine.

Sounds fine. And simpler.

@BrewTestBot BrewTestBot removed the python Python use is a significant feature of the PR or issue label Oct 7, 2021

# Also pybind11-config
bin.install Dir[libexec/"bin/*"]
bin.install Dir[libexec/"bin/pybind11-config*"]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I"m making pybind11-config-3.10 and such, and then including all of them + the latest one unversioned (this is the only thing that was colliding when installing this per-python version). I don't have to include the versioned ones, and we don't require these pythons - I could require python 3.10 since pybind11-config requires it. Thinking about it, adding versioned ones as outputs is likely not a good idea.

Copy link
Contributor Author

@henryiii henryiii Oct 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have dropped the two test lines and changed this to bin.install Dir[libexec/"bin/pybind11-config"].

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note requiring [email protected] will trigger the mixed-version-dependency audit.

Formula/pybind11.rb Outdated Show resolved Hide resolved
Formula/pybind11.rb Outdated Show resolved Hide resolved
Formula/pybind11.rb Outdated Show resolved Hide resolved
Formula/pybind11.rb Show resolved Hide resolved
Formula/pybind11.rb Outdated Show resolved Hide resolved
Formula/pybind11.rb Outdated Show resolved Hide resolved
Formula/pybind11.rb Outdated Show resolved Hide resolved
Formula/pybind11.rb Outdated Show resolved Hide resolved
Formula/pybind11.rb Outdated Show resolved Hide resolved
Formula/pybind11.rb Outdated Show resolved Hide resolved
Formula/pybind11.rb Outdated Show resolved Hide resolved
Formula/pybind11.rb Outdated Show resolved Hide resolved
@henryiii
Copy link
Contributor Author

henryiii commented Oct 8, 2021

Still left 3.10 as the source for pybind11-config (unversioned), and we still have the verisioned ones pybind11-config-3.10 and such, and all dependencies on Python are build/test. I can change any of those as needed.

Also haven't extracted this into a method, missed that. Can do on next edit.

Co-authored-by: Carlo Cabrera <[email protected]>
Signed-off-by: Carlo Cabrera <[email protected]>
Copy link
Member

@carlocab carlocab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cleaned that up for you. Thanks @henryiii!

@BrewTestBot
Copy link
Member

🤖 A scheduled task has triggered a merge.

@github-actions github-actions bot added the outdated PR was locked due to age label Nov 8, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated PR was locked due to age python-3.10-migration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants