From 1319f400ccd5d1817ddbbadfdf523bb857871927 Mon Sep 17 00:00:00 2001 From: Fan Jiang Date: Sun, 5 Jan 2020 22:58:25 -0500 Subject: [PATCH] Fix error when packaging --- cython/setup.py.in | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/cython/setup.py.in b/cython/setup.py.in index c35e54079..91bfaeb2b 100644 --- a/cython/setup.py.in +++ b/cython/setup.py.in @@ -5,13 +5,13 @@ 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}${GTSAM_BUILD_TAG}', 'setup.py'))) - if script_path != install_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') - sys.exit(1) +# 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}${GTSAM_BUILD_TAG}', 'setup.py'))) +# if script_path != install_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') +# sys.exit(1) packages = find_packages()