save stubs to 'stubs' directory and use cp instead of rsync
parent
48f9d0b116
commit
1744c4aeb3
|
@ -266,11 +266,11 @@ endif()
|
||||||
# Add custom target so we can install with `make python-install`
|
# Add custom target so we can install with `make python-install`
|
||||||
if (NOT WIN32) # WIN32=1 is target platform is Windows
|
if (NOT WIN32) # WIN32=1 is target platform is Windows
|
||||||
add_custom_target(python-install
|
add_custom_target(python-install
|
||||||
COMMAND stubgen -q -p gtsam && rsync -a \"out/gtsam/\" gtsam && ${PYTHON_EXECUTABLE} -m pip install --user .
|
COMMAND stubgen -q -p gtsam -o ./stubs && cp -a stubs/gtsam/ gtsam && ${PYTHON_EXECUTABLE} -m pip install --user .
|
||||||
DEPENDS ${GTSAM_PYTHON_DEPENDENCIES}
|
DEPENDS ${GTSAM_PYTHON_DEPENDENCIES}
|
||||||
WORKING_DIRECTORY ${GTSAM_PYTHON_BUILD_DIRECTORY})
|
WORKING_DIRECTORY ${GTSAM_PYTHON_BUILD_DIRECTORY})
|
||||||
else()
|
else()
|
||||||
#TODO(Varun) Find rsync equivalent on Windows
|
#TODO(Varun) Find equivalent cp on Windows
|
||||||
add_custom_target(python-install
|
add_custom_target(python-install
|
||||||
COMMAND ${PYTHON_EXECUTABLE} -m pip install --user .
|
COMMAND ${PYTHON_EXECUTABLE} -m pip install --user .
|
||||||
DEPENDS ${GTSAM_PYTHON_DEPENDENCIES}
|
DEPENDS ${GTSAM_PYTHON_DEPENDENCIES}
|
||||||
|
|
Loading…
Reference in New Issue