Skip to content

Commit

Permalink
Use correct virtualenv location
Browse files Browse the repository at this point in the history
  • Loading branch information
geographika committed Sep 4, 2018
1 parent beab44d commit d9d916a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mapscript/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,10 @@ else()
endif()

if(WIN32)
set(PYTHON_SCRIPTS ${OUTPUT_FOLDER}/mapscriptvenv/Scripts)
set(PYTHON_VENV_SCRIPTS ${OUTPUT_FOLDER}/mapscriptvenv/Scripts)
else()
set(PYTHON_SCRIPTS ${OUTPUT_FOLDER}/mapscriptvenv/Scripts)
set(PYTHON_VENV_SCRIPTS ${OUTPUT_FOLDER}/mapscriptvenv/bin)
endif()

Expand All @@ -82,7 +84,7 @@ add_custom_command(
WORKING_DIRECTORY ${OUTPUT_FOLDER}
COMMENT "Creating a Python virtual environment"
COMMAND ${PYTHON_EXECUTABLE} -m pip install virtualenv
COMMAND C:/Python27/Scripts/virtualenv --python=${PYTHON_EXECUTABLE} mapscriptvenv
COMMAND ${PYTHON_EXECUTABLE} -m virtualenv mapscriptvenv
)

add_custom_command(
Expand Down

0 comments on commit d9d916a

Please sign in to comment.