Skip to content

Commit

Permalink
Merge pull request #211 from benjeffery/fix_wheels
Browse files Browse the repository at this point in the history
Fix git issue in wheel building
  • Loading branch information
benjeffery authored Jun 9, 2022
2 parents cacb4c5 + f60ce31 commit 7c4afeb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/docker/buildwheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ set -e -x
ARCH=`uname -p`
echo "arch=$ARCH"


# We're running as root in the docker container so git commands issued by
# setuptools_scm will fail without this:
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
PYBIN=/opt/python/$V/bin
rm -rf build/ # Avoid lib build by narrow Python is used by wide python
Expand Down
14 changes: 11 additions & 3 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,11 @@ jobs:
- name: Install wheel and test
run: |
python -VV
# Install the local wheel
pip install wheel
# Install the local wheel, after getting deps
pip install tsdate --only-binary tsdate -f .
pip uninstall --yes msprime
pip install tsdate --no-index --only-binary tsdate -f .
python -c "import tsdate"
windows-test:
Expand All @@ -88,8 +91,10 @@ jobs:
run: |
python -VV
pip install wheel
# Install the local wheel
# Install the local wheel, after getting deps
pip install tsdate --only-binary tsdate -f .
pip uninstall --yes msprime
pip install tsdate --no-index --only-binary tsdate -f .
python -c "import tsdate"
manylinux-test:
Expand All @@ -110,8 +115,11 @@ jobs:
- name: Install wheel and test
run: |
python -VV
# Install the local wheel
pip install wheel
# Install the local wheel, after getting deps
pip install tsdate --only-binary tsdate -f .
pip uninstall --yes msprime
pip install tsdate --no-index --only-binary tsdate -f .
python -c "import tsdate"
Expand Down

0 comments on commit 7c4afeb

Please sign in to comment.