Re: module include path - /usr/local/lib/python3 vs /usr/local/lib/python3.9

2021-06-17 Thread Mats Wichmann
On 6/17/21 1:53 AM, Joachim Wuttke wrote: How to write a platform-independent CMake install command to install a Swig-generated Python module? The following brings us very close to a solution: ``` execute_process(     COMMAND "${Python3_EXECUTABLE}"     -c "from distutils import sysconfig as s

module include path - /usr/local/lib/python3 vs /usr/local/lib/python3.9

2021-06-17 Thread Joachim Wuttke
How to write a platform-independent CMake install command to install a Swig-generated Python module? The following brings us very close to a solution: ``` execute_process( COMMAND "${Python3_EXECUTABLE}" -c "from distutils import sysconfig as sc; print(sc.get_python_lib(prefix='',