Fix error when packaging
parent
4e9dd1292d
commit
1319f400cc
|
@ -5,13 +5,13 @@ try:
|
||||||
except ImportError:
|
except ImportError:
|
||||||
from distutils.core import setup, find_packages
|
from distutils.core import setup, find_packages
|
||||||
|
|
||||||
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}${GTSAM_BUILD_TAG}', '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')
|
||||||
sys.exit(1)
|
# sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
packages = find_packages()
|
packages = find_packages()
|
||||||
|
|
Loading…
Reference in New Issue