We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd26b76 commit cc27ffcCopy full SHA for cc27ffc
src/python/CMakeLists.txt
@@ -11,7 +11,10 @@ if (CALL_FROM_SETUP_PY)
11
else()
12
# The Python package is installed directly in the folder of the
13
# detected interpreter (system, user, or virtualenv)
14
- set(S2GEOMETRY_INSTALL_PREFIX ${Python3_SITELIB})
+ execute_process(COMMAND ${Python3_EXECUTABLE} -c
15
+ "import sys, sysconfig; print(sysconfig.get_path('platlib').replace(sys.prefix+'/','')+'/s2geometry')"
16
+ OUTPUT_VARIABLE S2GEOMETRY_INSTALL_PREFIX
17
+ OUTPUT_STRIP_TRAILING_WHITESPACE)
18
endif()
19
20
include(${SWIG_USE_FILE})
0 commit comments