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

Possible to prefer python from $PATH when building from source with CMake? (without -DPYTHON_EXECUTABLE option) #1659

Closed
pramodk opened this issue Feb 27, 2022 · 2 comments · Fixed by #1699

Comments

@pramodk
Copy link
Member

pramodk commented Feb 27, 2022

Overview of the feature

When users have python module loaded where:

$ which python
/gpfs/bbp.cscs.ch/ssd/apps/bsd/2022-01-10/stage_externals/install_gcc-11.2.0-skylake/python-3.9.7-yj5alh/bin/python

Typically users do:

cmake ..   \
    -DNRN_ENABLE_CORENEURON=ON   \
    -DCORENRN_ENABLE_GPU=ON   \
    -DNRN_ENABLE_INTERVIEWS=OFF   \
    -DNRN_ENABLE_RX3D=OFF   \
    -DCMAKE_INSTALL_PREFIX=$HOME/install 

and this selects system python:

-- Python        | ON
--   EXE         | /usr/bin/python3.6
--   INC         | /usr/include/python3.6m
--   LIB         | /usr/lib64/libpython3.6m.so.1.0

Is it possible to prefer python from $PATH than system on automatically?

Foreseeable Impact

This will avoid confusion on user side.

@pramodk
Copy link
Member Author

pramodk commented Mar 9, 2022

@alexsavulescu : I adding this to 8.1 milestone. If there is easy solution I think we should fix this. This is quite annoying/inconvenient behaviour. Could you take a look?

@alexsavulescu
Copy link
Member

Sure, will have a look once done with the nbsphinx PR

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

Successfully merging a pull request may close this issue.

2 participants