s2geometry icon indicating copy to clipboard operation
s2geometry copied to clipboard

python/CMakeLists.txt: Fix install destination

Open podsvirov opened this issue 3 years ago • 2 comments

Added CMAKE_INSTALL_PYLIBDIR cached variable. Default value retrivet from Python3_EXECUTABLE.

Current install destination Python3_SITELIB (absolute path from FindPython3 module). An absolute path is not acceptable when creating an installation package.

podsvirov avatar Apr 18 '21 10:04 podsvirov

Does #186 make this unnecessary?

jmr avatar Apr 22 '21 14:04 jmr

These changes are not directly related to the #186. These changes solve the problem of hard-coded absolute installation path for the python module. Absolute install paths add additional problems when creating packages for distribution (in this case, it becomes necessary to install to a path other than the default).

podsvirov avatar Apr 22 '21 17:04 podsvirov