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

Wrong python executable when compiling #99

Open
IssMneur opened this issue Sep 15, 2014 · 5 comments
Open

Wrong python executable when compiling #99

IssMneur opened this issue Sep 15, 2014 · 5 comments

Comments

@IssMneur
Copy link
Member

From [email protected] on January 01, 2013 22:33:17

When compiling from source on linux it is assumed that /usr/bin/python refers to Python 2. This is true on Debian based distros, but on others (i.e. Arch) /usr/bin/python is Python 3 and Python 2 is at /usr/bin/python2.

Original issue: http://code.google.com/p/wxlauncher/issues/detail?id=99

@IssMneur
Copy link
Member Author

From [email protected] on January 02, 2013 08:36:51

You can use the PYTHON_EXECUTABLE CMake option to specify which version of Python to use. Try re-running CMake while adding the following option to the command line:

-D PYTHON_EXECUTABLE=/usr/bin/python2

Let us know if that works.

@IssMneur
Copy link
Member Author

From [email protected] on January 02, 2013 17:24:22

That does the trick.

Apparently Ubuntu and Fedora also provide /usr/bin/python2, so it should be safe to make that the default path.

@IssMneur
Copy link
Member Author

From [email protected] on January 07, 2013 11:19:59

The default path for Python is whatever CMake determines to be the location for Python, which is platform-specific. We'll take a look at whether it's possible to tell CMake to look for Python 2 specifically, although I doubt it can be done. In the interest of being platform-agnostic, we probably won't hardcode a path.

At the very least, we'll make it clearer in the ReadMe that you can specify which Python executable to use with PYTHON_EXECUTABLE.

Cc: [email protected]
Labels: Milestone-Release0.9.4

@IssMneur
Copy link
Member Author

From [email protected] on January 07, 2013 11:20:40

Status: Accepted
Owner: [email protected]

@IssMneur IssMneur added this to the 0.9.5 milestone Feb 9, 2015
@IssMneur IssMneur self-assigned this Feb 9, 2015
@IssMneur
Copy link
Member Author

IssMneur commented Feb 9, 2015

Documentation has been added to the readme.txt about this feature.

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