Skip to content
Permalink
Browse files

Use correct virtualenv location

  • Loading branch information...
geographika committed Sep 4, 2018
1 parent beab44d commit d9d916a23aafeb1ac3ff2944eeb62853df7b5605
Showing with 3 additions and 1 deletion.
  1. +3 −1 mapscript/python/CMakeLists.txt
@@ -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()

@@ -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(

0 comments on commit d9d916a

Please sign in to comment.
You can’t perform that action at this time.