Skip to content

Commit

Permalink
Update CI build scripts for Python
Browse files Browse the repository at this point in the history
  • Loading branch information
lballabio committed Aug 1, 2024
1 parent 82e92da commit aaa6222
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .ci/python.build
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#!/bin/bash
set -e

python3 -m venv .venv
. .venv/bin/activate

pip install setuptools tox

./autogen.sh
./configure PYTHON=/usr/bin/python3 CC=clang CXX=clang++ CXXFLAGS='-O1'
./configure CC=clang CXX=clang++ CXXFLAGS='-O1'
make -C Python
make -C Python wheel
3 changes: 2 additions & 1 deletion .ci/python.check
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#!/bin/bash
set -e

. .venv/bin/activate

make -C Python check

. .venv/bin/activate
for i in Python/examples/*.py
do
echo "$i"
Expand Down
2 changes: 1 addition & 1 deletion .ci/python.install
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash
set -e

python3 -m venv .venv
. .venv/bin/activate

pip install Python/dist/QuantLib-*.whl
grep -v QuantLib binder/requirements.txt > Python/examples/requirements.txt
pip install -r Python/examples/requirements.txt

0 comments on commit aaa6222

Please sign in to comment.