update to setup.py install check to account for build type

release/4.3a0
Varun Agrawal 2019-06-12 15:08:22 -04:00
parent 914ea4cfc8
commit 2071aa7556
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ except ImportError:
if 'SETUP_PY_NO_CHECK' not in os.environ: if 'SETUP_PY_NO_CHECK' not in os.environ:
script_path = os.path.abspath(os.path.realpath(__file__)) script_path = os.path.abspath(os.path.realpath(__file__))
install_path = os.path.abspath(os.path.realpath(os.path.join('${GTSAM_CYTHON_INSTALL_PATH}', 'setup.py'))) install_path = os.path.abspath(os.path.realpath(os.path.join('${GTSAM_CYTHON_INSTALL_PATH}${GTSAM_BUILD_TAG}', 'setup.py')))
if script_path != install_path: if script_path != install_path:
print('setup.py is being run from an unexpected location: "{}"'.format(script_path)) print('setup.py is being run from an unexpected location: "{}"'.format(script_path))
print('please run `make install` and run the script from there') print('please run `make install` and run the script from there')