Skip to content

Commit

Permalink
Squashed 'wrap/' changes from 498d233e0..b11ecf4e8
Browse files Browse the repository at this point in the history
b11ecf4e8 Merge pull request #23 from borglab/fix/remove-pip-args
813030108 remove pip-args since we are using setup.py

git-subtree-dir: wrap
git-subtree-split: b11ecf4e8369eb199fcae3c27bf4c597f763aebb
  • Loading branch information
varunagrawal committed Jan 3, 2021
1 parent 2d14d2c commit 5846d15
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,8 @@ find_package(
COMPONENTS Interpreter
REQUIRED)

# Detect virtualenv and set Pip args accordingly
# https://www.scivision.dev/cmake-install-python-package/
if(DEFINED ENV{VIRTUAL_ENV} OR DEFINED ENV{CONDA_PREFIX})
set(_pip_args)
else()
set(_pip_args "--user --prefix=")
endif()
#TODO add correct flags for virtualenv

# Finally install the gtwrap python package.
execute_process(COMMAND ${Python_EXECUTABLE} setup.py install ${_pip_args}
execute_process(COMMAND ${Python_EXECUTABLE} setup.py install
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})

0 comments on commit 5846d15

Please sign in to comment.