Changeset: f2fb1d1ca6cb for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/f2fb1d1ca6cb Modified Files: cmake/monetdb-defines.cmake Branch: Jan2022 Log Message:
Python on Fedora 36 changed the default location of sysconfig.get_path('purelib'). diffs (12 lines): diff --git a/cmake/monetdb-defines.cmake b/cmake/monetdb-defines.cmake --- a/cmake/monetdb-defines.cmake +++ b/cmake/monetdb-defines.cmake @@ -304,7 +304,7 @@ macro(monetdb_configure_misc) if(NOT DEFINED PYTHON3_LIBDIR) # Used for installing testing python module (don't pass a location, else we need to strip this again) - execute_process(COMMAND "${Python3_EXECUTABLE}" "-c" "import sysconfig; print(sysconfig.get_path('purelib', vars={'base': ''})[1:])" + execute_process(COMMAND "${Python3_EXECUTABLE}" "-c" "import sysconfig; print((sysconfig.get_path('purelib', vars={'base':''}, scheme='rpm_prefix') if 'rpm_prefix' in sysconfig.get_scheme_names() else sysconfig.get_path('purelib', vars={'base':''}))[1:])" RESULT_VARIABLE PY3_LIBDIR_CODE OUTPUT_VARIABLE PYTHON3_SITEDIR OUTPUT_STRIP_TRAILING_WHITESPACE) _______________________________________________ checkin-list mailing list -- checkin-list@monetdb.org To unsubscribe send an email to checkin-list-le...@monetdb.org