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

Install pybind11 if it is missing #587

Merged
merged 1 commit into from
Nov 29, 2023
Merged

Conversation

psavery
Copy link
Collaborator

@psavery psavery commented Nov 28, 2023

We currently support 3 different build setups:

  1. In a conda environment (uses pybind11 conda package in build step)
  2. In a regular pip environment (uses pybind11 in build isolation as specified in pyproject.toml)
  3. In a conda development environment (no build isolation)

This PR fixes number 3.

pybind11 is not a runtime dependency for the conda environment, so if a user installs the HEXRD prerelease, it won't come with pybind11. Then, if a user tries to make a dev environment, pybind11 won't be available.

The changes here make it so that in situation number 3, the pybind11 source code is downloaded automatically and installed, so that the headers can be found.

Fixes: #586 (see here)

We currently support 3 different build setups:

1. In a conda environment (uses pybind11 conda package in build step)
2. In a regular pip environment (uses pybind11 in build isolation as specified in pyproject.toml)
3. In a conda development environment (no build isolation)

This PR fixes number 3.

pybind11 is not a runtime dependency for the conda environment, so if a user
installs the HEXRD prerelease, it won't come with pybind11. Then, if a user
tries to make a dev environment, pybind11 won't be available.

The changes here make it so that in situation number 3, the pybind11 source
code is downloaded automatically and installed, so that the headers can
be found.

Signed-off-by: Patrick Avery <[email protected]>
@psavery psavery requested a review from bnmajor November 29, 2023 13:50
@psavery psavery merged commit 1dc509b into master Nov 29, 2023
6 checks passed
@psavery psavery deleted the install-pybind11-if-missing branch November 29, 2023 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

no inverse_distortion hexrd.extensions
2 participants