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 893680dCopy full SHA for 893680d
src/python/CMakeLists.txt
@@ -12,6 +12,10 @@ 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})
15
+ execute_process(COMMAND ${Python3_EXECUTABLE} -c
16
+ "import sys, sysconfig; print(sysconfig.get_path('platlib').replace(sys.prefix+'/','')+'/s2geometry')"
17
+ OUTPUT_VARIABLE S2GEOMETRY_INSTALL_PREFIX
18
+ OUTPUT_STRIP_TRAILING_WHITESPACE)
19
endif()
20
21
include(${SWIG_USE_FILE})
0 commit comments