Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ if (CALL_FROM_SETUP_PY)
else()
# The Python package is installed directly in the folder of the
# detected interpreter (system, user, or virtualenv)
set(S2GEOMETRY_INSTALL_PREFIX ${Python3_SITELIB})
execute_process(COMMAND ${Python3_EXECUTABLE} -c
"import sys, sysconfig; print(sysconfig.get_path('platlib').replace(sys.prefix+'/','')+'/s2geometry')"
OUTPUT_VARIABLE S2GEOMETRY_INSTALL_PREFIX
OUTPUT_STRIP_TRAILING_WHITESPACE)
endif()

include(${SWIG_USE_FILE})
Expand Down
Loading