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

Easy switch from python2 to python3 #27

Open
mdavezac opened this issue Oct 29, 2015 · 2 comments
Open

Easy switch from python2 to python3 #27

mdavezac opened this issue Oct 29, 2015 · 2 comments

Comments

@mdavezac
Copy link

PEP states that in the future the python and python2 command should always point to python 2 and the python3 command should always point to python 3.
Would it be possible to have such a thing in the CMakeCookOff and via this get a switch to configure either for Python 2 or for Python 3.

@mdavezac
Copy link
Author

@tbetcke, that sounds like a good idea.
Currently, I'm just instantiating virtualenvs with either python2 or python3 to test one or the other. But that's more cumbersome than it has to be.

@mdavezac
Copy link
Author

So, it looks like the following does the trick:

cmake -DPythonInterp_FIND_VERSION=2 -DPythonInterp_FIND_VERSION_MAJOR=2 ..

But we could make it easier, either from the cookoff or from bempp.

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

No branches or pull requests

1 participant