This repository has been archived by the owner on Mar 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
travis.yml: Add job to build tulip-python wheel on manylinux1
- Loading branch information
Showing
2 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
|
||
# This script is only intended to be run in the pypa/manylinux1 | ||
# docker image based on Centos 5.11 | ||
|
||
cd | ||
|
||
# install tulip-python wheel deps | ||
yum -y install zlib-devel qhull-devel ccache | ||
|
||
# we need at least CMake 2.8.12 in order to build tulip-python wheel | ||
# so let's grab it, compile it and install it | ||
curl -LO https://cmake.org/files/v2.8/cmake-2.8.12.tar.gz | ||
tar -xvzf cmake-2.8.12.tar.gz | ||
cd cmake-2.8.12 | ||
./bootstrap --enable-ccache | ||
make -j4 | ||
make -j4 install | ||
|
||
cd | ||
|
||
mkdir tulip_build && cd tulip_build | ||
# iterate on available Python versions | ||
for PYTHON_BIN_PATH in /opt/python/cp*/bin | ||
do | ||
# configure and build tulip-python with specific Python version | ||
cmake -DTULIP_USE_CCACHE=ON -DTULIP_ACTIVATE_PYTHON_WHEEL_TARGET=ON -DPYTHON_EXECUTABLE=$PYTHON_BIN_PATH/python -DCMAKE_BUILD_TYPE=Release /tulip | ||
make -j4 wheel | ||
# install and check that the produced module can be successfully imported | ||
cd ./library/tulip-python/bindings/tulip-core/tulip_module/dist | ||
$PYTHON_BIN_PATH/pip install $(ls -t | head -1) | ||
$PYTHON_BIN_PATH/python -c "import tulip" | ||
cd && cd tulip_build | ||
done |