diff --git a/build_tools/wheels/cibw_before_all.sh b/build_tools/wheels/cibw_before_all.sh index 871ece45f..789d65c5a 100644 --- a/build_tools/wheels/cibw_before_all.sh +++ b/build_tools/wheels/cibw_before_all.sh @@ -9,10 +9,10 @@ PROJECT_DIR="$2" export PYTHON="python${PYTHON_VERSION}" yum install -y wget ninja-build -pip install -r $PROJECT_DIR/python/dev_requirements.txt +$(which $PYTHON) -m pip install -r $PROJECT_DIR/python/dev_requirements.txt # Install Boost -wget https://archives.boost.io/release/1.87.0/source/boost_1_87_0.tar.gz +wget https://archives.boost.io/release/1.87.0/source/boost_1_87_0.tar.gz --quiet tar -xzf boost_1_87_0.tar.gz cd boost_1_87_0 ./bootstrap.sh --prefix=/opt/boost @@ -39,5 +39,5 @@ cmake $PROJECT_DIR \ -DGTSAM_ALLOW_DEPRECATED_SINCE_V43=OFF \ -DCMAKE_INSTALL_PREFIX=$PROJECT_DIR/gtsam_install -cd $PROJECT_DIR/build +cd $PROJECT_DIR/build/python make -j$(nproc) install diff --git a/python/setup.py.in b/python/setup.py.in index b9d7392c7..4be235ab0 100644 --- a/python/setup.py.in +++ b/python/setup.py.in @@ -1,6 +1,6 @@ """Setup file to install the GTSAM package.""" -from setuptools import setup, find_namespace_packages +from setuptools import setup, find_namespace_packages, Distribution packages = find_namespace_packages( where=".", @@ -20,6 +20,10 @@ package_data = { # Cleaner to read in the contents rather than copy them over. readme_contents = open("${GTSAM_SOURCE_DIR}/README.md").read() +class BinaryDistribution(Distribution): + def has_ext_modules(foo): + return True + setup( name='gtsam', description='Georgia Tech Smoothing And Mapping library', @@ -46,6 +50,7 @@ setup( packages=packages, include_package_data=True, package_data=package_data, + distclass=BinaryDistribution, test_suite="gtsam.tests", install_requires=open("${GTSAM_SOURCE_DIR}/python/requirements.txt").readlines(), zip_safe=False,