Skip to content
Snippets Groups Projects
Commit b665150e authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

manylinux build only 3.7 for tests

parent ba0b1823
No related branches found
No related tags found
No related merge requests found
......@@ -6,5 +6,5 @@ tar --bzip2 -xf boost_1_74_0.tar.bz2
cd boost_1_74_0
./bootstrap.sh --prefix=/usr/local
cp ../project-config.jam .
./b2 install link=shared python=2.7,3.5,3.6,3.7,3.8,3.9 -j"$(nproc)"
./b2 install link=shared python=3.7 -j"$(nproc)"
rm -rf /build
......@@ -18,12 +18,7 @@ project : default-build <toolset>gcc ;
import python ;
if ! [ python.configured ]
{
using python : 2.7 : /usr/bin/python : /usr/include/python2.7 : /usr/lib ;
using python : 3.5 : /opt/python/cp35-cp35m/bin/python : /opt/python/cp35-cp35m/include/python3.5m : /opt/python/cp35-cp35m/lib ;
using python : 3.6 : /opt/python/cp36-cp36m/bin/python : /opt/python/cp36-cp36m/include/python3.6m : /opt/python/cp36-cp36m/lib ;
using python : 3.7 : /opt/python/cp37-cp37m/bin/python : /opt/python/cp37-cp37m/include/python3.7m : /opt/python/cp37-cp37m/lib ;
using python : 3.8 : /opt/python/cp38-cp38/bin/python : /opt/python/cp38-cp38/include/python3.8 : /opt/python/cp38-cp38/lib ;
using python : 3.9 : /opt/python/cp39-cp39/bin/python : /opt/python/cp39-cp39/include/python3.9 : /opt/python/cp39-cp39/lib ;
}
# List of --with-<library> and --without-<library>
......
#!/bin/bash -eux
# Install cmake, ninja and wheel
PY39_BIN=/opt/python/cp39-cp39/bin
$PY39_BIN/pip install cmake ninja wheel
ln -s $PY39_BIN/cmake /usr/bin/
ln -s $PY39_BIN/ninja /usr/bin/
ln -s $PY39_BIN/wheel /usr/bin/
rm /opt/python/{cp35-cp35m,cp36-cp36m,cp38-cp38,cp39-cp39}
# Setup python 2.7
yum -y install python-pip
PY27_BIN=/opt/python/cp27-cp27mu/bin
mkdir -p $PY27_BIN
ln -s /usr/bin/python $PY27_BIN/
ln -s /usr/bin/pip $PY27_BIN/
touch $PY27_BIN/python2.7
pip2 install --upgrade pip
pip2 install scikit-build --user
# Install cmake, ninja and wheel
PY37_BIN=/opt/python/cp37-cp37m/bin
$PY37_BIN/pip install cmake ninja wheel
ln -s $PY37_BIN/cmake /usr/bin/
ln -s $PY37_BIN/ninja /usr/bin/
ln -s $PY37_BIN/wheel /usr/bin/
# Upgrade pip and install scikit-build
for PYBIN in /opt/python/*/bin; do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment