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

Feature to pass path to python executable to conan #343

Open
Jean1995 opened this issue Jan 25, 2023 · 0 comments
Open

Feature to pass path to python executable to conan #343

Jean1995 opened this issue Jan 25, 2023 · 0 comments

Comments

@Jean1995
Copy link
Member

When working with CMake, one can tell CMake where to find the correct python path for the python bindings with something like

-DPython_EXECUTABLE=/path/to/python/

But if one uses only conan to install, one just uses conan build .. and conan will call CMake itself. Therefore, it might be a good idea to add an option in conan where one can pass the python path, so something like

conan install .. -o with_python=True -o python_executable="/path/to/python/library"

which would in turn do something like

self._cmake.definitions["Python_EXECUTABLE"] = self.options.python_executable

inside the conanfile.

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