-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
79 additions
and
22 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
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
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
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,44 @@ | ||
#!/bin/bash | ||
|
||
set -e -x | ||
|
||
wget https://github.com/lebarsfa/ibex-lib/releases/download/ibex-2.8.9.20240417/ibex_$(uname -m)_manylinux2014.zip --no-check-certificate -nv | ||
unzip -q ibex_$(uname -m)_manylinux2014.zip | ||
rm -Rf ibex_$(uname -m)_manylinux2014.zip | ||
sudo cp -Rf ibex/* /usr/local/ | ||
|
||
git config --global --add safe.directory /io | ||
cd /io | ||
for PYBIN in /opt/python/cp3*/bin; do | ||
|
||
#if [ "${PYBIN}" = "/opt/python/cp310-cp310/bin" ]; then | ||
# continue | ||
#fi | ||
|
||
"${PYBIN}/python" -m pip install --upgrade pip | ||
"${PYBIN}/python" -m pip install --upgrade wheel setuptools | ||
mkdir -p build_dir && cd build_dir | ||
cmake -E env CXXFLAGS="-fPIC" CFLAGS="-fPIC" cmake -DPYTHON_EXECUTABLE=${PYBIN}/python -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=ON -DWITH_CAPD=OFF -DWITH_PYTHON=ON .. | ||
make -j4 | ||
|
||
make pip_package | ||
echo "copy wheel and clean build_dir" | ||
for whl in *.whl; do | ||
auditwheel repair "$whl" -w /io/wheelhouse/ | ||
done | ||
|
||
"${PYBIN}/python" -m pip install codac4matlab --no-deps --no-index -f /io/wheelhouse | ||
"${PYBIN}/python" -c "import sys; print(sys.version); import codac4matlab; print(codac4matlab.__version__); from codac4matlab import *; print(IntervalVector([[-0.1],[0],[0.2]]))" | ||
#"${PYBIN}/python" ../examples/02_centered_form/main.py | ||
#"${PYBIN}/python" -m pip install numpy --prefer-binary | ||
#"${PYBIN}/python" -m unittest discover codac.tests | ||
|
||
#make test ARGS="-V --output-on-failure" | ||
#echo "start of Testing/Temporary/LastTest.log" | ||
#cat Testing/Temporary/LastTest.log | ||
#echo "end of Testing/Temporary/LastTest.log" | ||
|
||
cd /io | ||
rm -fr build_dir | ||
|
||
done |