Skip to content

Commit

Permalink
build manylinux2010 instead of manylinux1
Browse files Browse the repository at this point in the history
  • Loading branch information
scottbelden committed Nov 8, 2019
1 parent e62cdb9 commit d16df49
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ script:
- codecov
after_success:
- if [[ $TRAVIS_TAG && "$TRAVIS_OS_NAME" == "linux" && $TRAVIS_PYTHON_VERSION != *"pypy"* ]]; then
docker run --rm -v "$(pwd):/data" quay.io/pypa/manylinux1_x86_64 bash -c "/data/.travis_build_wheel.sh $TRAVIS_PYTHON_VERSION";
docker run --rm -v "$(pwd):/data" quay.io/pypa/manylinux2010_x86_64 bash -c "/data/.travis_build_wheel.sh $TRAVIS_PYTHON_VERSION";
fi;
deploy:
provider: releases
Expand Down
2 changes: 2 additions & 0 deletions .travis_build_wheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,5 @@ done

# Remove unfixed wheel
rm -rf dist/fastavro-*-linux_*
# Remove the manylinux1 wheel
rm -rf dist/fastavro-*-manylinux1_*
6 changes: 3 additions & 3 deletions publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fi
OSes="win_amd64
win32
macosx_10_13_x86_64
manylinux1_x86_64"
manylinux2010_x86_64"

PyVers="27
35
Expand All @@ -33,11 +33,11 @@ done

# Get the 38 versions
for os in $OSes; do
wget -q --directory-prefix=dist/ https://github.com/fastavro/fastavro/releases/download/${ver}/fastavro-${ver}-cp${pyver}-cp${pyver}-${os}.whl
wget -q --directory-prefix=dist/ https://github.com/fastavro/fastavro/releases/download/${ver}/fastavro-${ver}-cp38-cp38-${os}.whl
done

# Also get the linux 2.7mu version
wget -q --directory-prefix=dist/ https://github.com/fastavro/fastavro/releases/download/${ver}/fastavro-${ver}-cp27-cp27mu-manylinux1_x86_64.whl
wget -q --directory-prefix=dist/ https://github.com/fastavro/fastavro/releases/download/${ver}/fastavro-${ver}-cp27-cp27mu-manylinux2010_x86_64.whl

make fresh
FASTAVRO_USE_CYTHON=1 python setup.py sdist
Expand Down

0 comments on commit d16df49

Please sign in to comment.