Open adwait opened 1 week ago
Fix: add the following to the configure.sh script
cmake_opts="$cmake_opts \
-DPYTHON_INCLUDE_DIR=$(python -c "import sysconfig; print(sysconfig.get_path('include'))") \
-DPYTHON_LIBRARY=$(python -c "import sysconfig; print(sysconfig.get_config_var('LIBDIR'))")"
Issue: I set the local python version:
pyenv local 3.x.x
, and tried configuring. Running./configure.sh --python
in a directory with a local python version fails with the following message (CMake does not pick up local python include directories):Similar issue here: #24
Proposed fix: dynamically grab python include paths in the configure script.