made it possible to disable the setup.py check

release/4.3a0
Matthew Broadway 2019-03-13 09:45:56 +00:00
parent 9982d79d74
commit 173191621e
1 changed files with 7 additions and 7 deletions

View File

@ -5,7 +5,7 @@ try:
except ImportError:
from distutils.core import setup, find_packages
if 'SETUP_PY_NO_CHECK' not in os.environ:
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')))
if script_path != install_path: