Skip to content

Commit

Permalink
Merge pull request #2058 from tskit-dev/test
Browse files Browse the repository at this point in the history
Fix linux wheel building and testing
  • Loading branch information
benjeffery authored May 19, 2022
2 parents 8ffb29d + 8c1b8a6 commit c11a2f1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/docker/buildwheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@ git config --global --add safe.directory /project
# Fetch the full history as we'll be missing tags otherwise.
git fetch --unshallow
for V in "${PYTHON_VERSIONS[@]}"; do
git reset --hard
git clean -fd
PYBIN=/opt/python/$V/bin
rm -rf build/ # Avoid lib build by one Python is used by another
$PYBIN/python -m venv env
source env/bin/activate
python -m pip install --upgrade build
SETUPTOOLS_SCM_DEBUG=1 python -m build
$PYBIN/python -m pip install --upgrade build
SETUPTOOLS_SCM_DEBUG=1 $PYBIN/python -m build
done

cd dist
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker/shared.env
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PYTHON_VERSIONS=(
cp310-cp310
cp39-cp39
cp38-cp38
cp37-cp37m
cp310-cp310
)
GSL_VERSION=2.6
8 changes: 6 additions & 2 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ jobs:
run: |
python -VV
# Install the local wheel
pip install msprime --only-binary msprime -f .
pip install msprime
pip uninstall --yes msprime
pip install msprime --no-index --only-binary msprime -f .
python -c "import msprime"
msp simulate 10 tmp.trees
tskit info tmp.trees
Expand All @@ -118,7 +120,9 @@ jobs:
run: |
python -VV
# Install the local wheel
pip install msprime --only-binary msprime -f .
pip install msprime
pip uninstall --yes msprime
pip install msprime --no-index --only-binary msprime -f .
python -c "import msprime"
msp simulate 10 tmp.trees
tskit info tmp.trees
Expand Down

0 comments on commit c11a2f1

Please sign in to comment.