You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (NOTWIN32) # WIN32=1 is target platform is Windows
271
-
add_custom_target(${GTSAM_PYTHON_INSTALL_TARGET}
272
-
COMMAND stubgen -q -p gtsam && cp -a out/gtsam/ gtsam && ${PYTHON_EXECUTABLE} -c "import sys, subprocess; cmd = [sys.executable, '-m', 'pip', 'install']; has_venv = hasattr(sys, 'real_prefix') or (hasattr(sys, 'base_prefix') and sys.base_prefix != sys.prefix); cmd.append('--user' if not has_venv else ''); cmd.append('.'); subprocess.check_call([c for c in cmd if c])"
273
-
DEPENDS${GTSAM_PYTHON_DEPENDENCIES}
274
-
WORKING_DIRECTORY${GTSAM_PYTHON_BUILD_DIRECTORY}
275
-
VERBATIM)
276
-
else()
277
-
#TODO(Varun) Find equivalent cp on Windows
278
-
add_custom_target(${GTSAM_PYTHON_INSTALL_TARGET}
300
+
301
+
add_custom_target(${GTSAM_PYTHON_INSTALL_TARGET}
279
302
COMMAND${PYTHON_EXECUTABLE} -c "import sys, subprocess; cmd = [sys.executable, '-m', 'pip', 'install']; has_venv = hasattr(sys, 'real_prefix') or (hasattr(sys, 'base_prefix') and sys.base_prefix != sys.prefix); cmd.append('--user' if not has_venv else ''); cmd.append('.'); subprocess.check_call([c for c in cmd if c])"
mypy==1.4.1 #TODO(Varun) A bug in mypy>=1.5.0 causes an unresolved placeholder error when importing numpy>=2.0.0 (https://github.com/python/mypy/issues/17396)
0 commit comments