Skip to content

Commit

Permalink
venv_macos
Browse files Browse the repository at this point in the history
  • Loading branch information
jngrad committed Feb 4, 2025
1 parent 1d2687c commit ba05aa5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
11 changes: 0 additions & 11 deletions src/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,6 @@
set(ESPRESSO_PYTHON_DIR ${CMAKE_CURRENT_BINARY_DIR})

set(ESPRESSO_PYTHON_FRONTEND ${Python_EXECUTABLE})
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
execute_process(
COMMAND "${ESPRESSO_PYTHON_FRONTEND}" "-c"
"import sysconfig; print(sysconfig.get_config_var('exec_prefix'))"
OUTPUT_VARIABLE DARWIN_EXEC_PREFIX OUTPUT_STRIP_TRAILING_WHITESPACE)
set(ESPRESSO_PYTHON_FRONTEND_TMP
"${DARWIN_EXEC_PREFIX}/Resources/Python.app/Contents/MacOS/Python")
if(EXISTS ${ESPRESSO_PYTHON_FRONTEND_TMP})
set(ESPRESSO_PYTHON_FRONTEND ${ESPRESSO_PYTHON_FRONTEND_TMP})
endif()
endif()
configure_file(pypresso.cmakein ${CMAKE_BINARY_DIR}/pypresso @ONLY)

if(IPYTHON_EXECUTABLE)
Expand Down
2 changes: 1 addition & 1 deletion src/python/pypresso.cmakein
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ case "$1" in
;;
--coverage)
shift
exec @Python_EXECUTABLE@ -m coverage run --source=@CMAKE_BINARY_DIR@/testsuite/ --rcfile="@PROJECT_SOURCE_DIR@/.coveragerc" "$@"
exec "@Python_EXECUTABLE@" -m coverage run --source="@CMAKE_BINARY_DIR@/testsuite/" --rcfile="@PROJECT_SOURCE_DIR@/.coveragerc" "$@"
;;
--valgrind)
shift
Expand Down

0 comments on commit ba05aa5

Please sign in to comment.