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

Allow choice of specific python release #1410

Merged
merged 3 commits into from
Jun 20, 2021

Conversation

lgritz
Copy link
Collaborator

@lgritz lgritz commented Jun 13, 2021

If you're building on a system with multiple versions of Python available,
it can be very hard to make OCIO build against a specific version. In
particular, https://cmake.org/cmake/help/latest/module/FindPython.html
explains that FindPython looks preferably for version 3 of Python.

This situation doesn't really come up in the CI, because all of the containers
have only one version of python each -- the one you are trying to use.
But often people are building on systems with several versions of Python.

I also removed a comment about pybind11 2.4.3 that no longer seems
relevant since we're asking for 2.6.1 or higher.

Signed-off-by: Larry Gritz lg@larrygritz.com

If you're building on a system with multiple versions of Python available,
it can be very hard to make OCIO build against a specific version. In
particular, https://cmake.org/cmake/help/latest/module/FindPython.html
explains that FindPython looks preferably for version 3 of Python.

Signed-off-by: Larry Gritz <lg@larrygritz.com>
* Rename OCIO_PREFERRED_PYTHON_VERSION -> OCIO_PYTHON_VERSION.
* Move the cached variable to the top level CMakeLists.txt instead of in
  FindExtPackages.cmake.
* Warning if OCIO_PYTHON_VERSION is set but OCIO_BUILD_PYTHON is off.

Signed-off-by: Larry Gritz <lg@larrygritz.com>
@lgritz
Copy link
Collaborator Author

lgritz commented Jun 14, 2021

PR amended with the review suggestions.

@hodoulp hodoulp merged commit 12ee9db into AcademySoftwareFoundation:RB-2.0 Jun 20, 2021
hodoulp added a commit that referenced this pull request Jun 28, 2021
* Allow choice of specific python release

If you're building on a system with multiple versions of Python available,
it can be very hard to make OCIO build against a specific version. In
particular, https://cmake.org/cmake/help/latest/module/FindPython.html
explains that FindPython looks preferably for version 3 of Python.

Signed-off-by: Larry Gritz <lg@larrygritz.com>

* Amendments based on review comments:

* Rename OCIO_PREFERRED_PYTHON_VERSION -> OCIO_PYTHON_VERSION.
* Move the cached variable to the top level CMakeLists.txt instead of in
  FindExtPackages.cmake.
* Warning if OCIO_PYTHON_VERSION is set but OCIO_BUILD_PYTHON is off.

Signed-off-by: Larry Gritz <lg@larrygritz.com>

Co-authored-by: Patrick Hodoul <patrick.hodoul@autodesk.com>
doug-walker added a commit that referenced this pull request Jul 12, 2021
* Allow choice of specific python release

If you're building on a system with multiple versions of Python available,
it can be very hard to make OCIO build against a specific version. In
particular, https://cmake.org/cmake/help/latest/module/FindPython.html
explains that FindPython looks preferably for version 3 of Python.

Signed-off-by: Larry Gritz <lg@larrygritz.com>

* Amendments based on review comments:

* Rename OCIO_PREFERRED_PYTHON_VERSION -> OCIO_PYTHON_VERSION.
* Move the cached variable to the top level CMakeLists.txt instead of in
  FindExtPackages.cmake.
* Warning if OCIO_PYTHON_VERSION is set but OCIO_BUILD_PYTHON is off.

Signed-off-by: Larry Gritz <lg@larrygritz.com>

Co-authored-by: Patrick Hodoul <patrick.hodoul@autodesk.com>

Co-authored-by: Larry Gritz <lg@larrygritz.com>
Co-authored-by: doug-walker <43830961+doug-walker@users.noreply.github.com>
Sarcasm added a commit to Sarcasm/OpenColorIO that referenced this pull request Oct 22, 2021
This duplicate seems to come from the PR AcademySoftwareFoundation#1371.
This PR spanned April 15 - August 24 (2021).

Meanwhile, PR AcademySoftwareFoundation#1410 (June 13 - June 21),
changed the CMake logic around `find_package(pybind11 ...)`.

Looks like former PR mishandled the merge of the latter.
Sarcasm added a commit to Sarcasm/OpenColorIO that referenced this pull request Oct 22, 2021
This duplicate seems to come from the PR AcademySoftwareFoundation#1371.
This PR spanned April 15 - August 24 (2021).

Meanwhile, PR AcademySoftwareFoundation#1410 (June 13 - June 21),
changed the CMake logic around `find_package(pybind11 ...)`.

Looks like former PR mishandled the merge of the latter.
Sarcasm added a commit to Sarcasm/OpenColorIO that referenced this pull request Oct 22, 2021
This duplicate seems to come from the PR AcademySoftwareFoundation#1371.
This PR spanned April 15 - August 24 (2021).

Meanwhile, PR AcademySoftwareFoundation#1410 (June 13 - June 21),
changed the CMake logic around `find_package(pybind11 ...)`.

It looks like former PR mishandled the merge of the latter.
Sarcasm added a commit to Sarcasm/OpenColorIO that referenced this pull request Oct 22, 2021
This duplicate seems to come from the PR AcademySoftwareFoundation#1371.
This PR spanned April 15 - August 24 (2021).

Meanwhile, PR AcademySoftwareFoundation#1410 (June 13 - June 21),
changed the CMake logic around `find_package(pybind11 ...)`.

It looks like former PR mishandled the merge of the latter.
Sarcasm added a commit to Sarcasm/OpenColorIO that referenced this pull request Oct 22, 2021
This duplicate seems to come from the PR AcademySoftwareFoundation#1371.
This PR spanned April 15 - August 24 (2021).

Meanwhile, PR AcademySoftwareFoundation#1410 (June 13 - June 21),
changed the CMake logic around `find_package(pybind11 ...)`.

It looks like former PR mishandled the merge of the latter.

Signed-off-by: Guillaume Papin <guillaume.papin@epitech.eu>
hodoulp pushed a commit that referenced this pull request Oct 26, 2021
This duplicate seems to come from the PR #1371.
This PR spanned April 15 - August 24 (2021).

Meanwhile, PR #1410 (June 13 - June 21),
changed the CMake logic around `find_package(pybind11 ...)`.

It looks like former PR mishandled the merge of the latter.

Signed-off-by: Guillaume Papin <guillaume.papin@epitech.eu>
hodoulp pushed a commit that referenced this pull request Oct 26, 2021
This duplicate seems to come from the PR #1371.
This PR spanned April 15 - August 24 (2021).

Meanwhile, PR #1410 (June 13 - June 21),
changed the CMake logic around `find_package(pybind11 ...)`.

It looks like former PR mishandled the merge of the latter.

Signed-off-by: Guillaume Papin <guillaume.papin@epitech.eu>
hodoulp added a commit that referenced this pull request Oct 26, 2021
This duplicate seems to come from the PR #1371.
This PR spanned April 15 - August 24 (2021).

Meanwhile, PR #1410 (June 13 - June 21),
changed the CMake logic around `find_package(pybind11 ...)`.

It looks like former PR mishandled the merge of the latter.

Signed-off-by: Guillaume Papin <guillaume.papin@epitech.eu>

Co-authored-by: Guillaume Papin <guillaume.papin@epitech.eu>
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.

4 participants