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

Automatically find Python3 version #526

Merged
merged 2 commits into from
Sep 22, 2020
Merged

Conversation

varunagrawal
Copy link
Collaborator

@varunagrawal varunagrawal commented Sep 18, 2020

Use CMake to identify best Python3 version if Default requested.
Note that the CMake code looks specifically for Python3 as we shouldn't be supporting the EOL'd Python2.

This also helps get rid of a bunch of checks for the Default value.

Fixes #519 and #522.

@varunagrawal varunagrawal added the python Related to python wrapper label Sep 18, 2020
@varunagrawal varunagrawal self-assigned this Sep 18, 2020
@varunagrawal varunagrawal linked an issue Sep 18, 2020 that may be closed by this pull request
@ProfFan
Copy link
Collaborator

ProfFan commented Sep 18, 2020

https://cmake.org/cmake/help/latest/module/FindPython.html :
"Python3 is searched and will fall back to Python2"

@varunagrawal
Copy link
Collaborator Author

I wanted to fail if Python3 is not found, rather than fall back to Python2. I strongly believe we should not support Python2 on our end.

@varunagrawal varunagrawal merged commit a4c3623 into develop Sep 22, 2020
@varunagrawal varunagrawal deleted the feature/python-version branch September 22, 2020 01:52
@fangxu622
Copy link

I have the same questions #
can't build matlab wrapper, #552
but build python wrapper is ok~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python Related to python wrapper
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Default Python version is bad Matlab wrapper uses python 3
3 participants