File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -9,10 +9,10 @@ PROJECT_DIR="$2"
99export PYTHON=" python${PYTHON_VERSION} "
1010
1111yum install -y wget ninja-build
12- pip install -r $PROJECT_DIR /python/dev_requirements.txt
12+ $( which $PYTHON ) -m pip install -r $PROJECT_DIR /python/dev_requirements.txt
1313
1414# Install Boost
15- wget https://archives.boost.io/release/1.87.0/source/boost_1_87_0.tar.gz
15+ wget https://archives.boost.io/release/1.87.0/source/boost_1_87_0.tar.gz --quiet
1616tar -xzf boost_1_87_0.tar.gz
1717cd boost_1_87_0
1818./bootstrap.sh --prefix=/opt/boost
@@ -39,5 +39,5 @@ cmake $PROJECT_DIR \
3939 -DGTSAM_ALLOW_DEPRECATED_SINCE_V43=OFF \
4040 -DCMAKE_INSTALL_PREFIX=$PROJECT_DIR /gtsam_install
4141
42- cd $PROJECT_DIR /build
42+ cd $PROJECT_DIR /build/python
4343make -j$( nproc) install
Original file line number Diff line number Diff line change 11"""Setup file to install the GTSAM package."""
22
3- from setuptools import setup, find_namespace_packages
3+ from setuptools import setup, find_namespace_packages, Distribution
44
55packages = find_namespace_packages(
66 where=".",
@@ -20,6 +20,10 @@ package_data = {
2020# Cleaner to read in the contents rather than copy them over.
2121readme_contents = open("${GTSAM_SOURCE_DIR}/README.md").read()
2222
23+ class BinaryDistribution(Distribution):
24+ def has_ext_modules(foo):
25+ return True
26+
2327setup(
2428 name='gtsam',
2529 description='Georgia Tech Smoothing And Mapping library',
4650 packages=packages,
4751 include_package_data=True,
4852 package_data=package_data,
53+ distclass=BinaryDistribution,
4954 test_suite="gtsam.tests",
5055 install_requires=open("${GTSAM_SOURCE_DIR}/python/requirements.txt").readlines(),
5156 zip_safe=False,
You can’t perform that action at this time.
0 commit comments