Skip to content

Commit

Permalink
Update libvips and pyproj versions.
Browse files Browse the repository at this point in the history
Also, make more reproducible builds.  By default, pip injects a symbol
with its build directory into compiled files.  See
pypa/pip#6505.  This can be avoided by
preventing debug symbols by adding `CFLAGS=-g0`.  Additionally, the
wheels contain a few files with the current time stamp rather than the
time given by `SOURCE_DATE_EPOCH`, so the perl tool
`strip-nodeterminism` is used to redate the files within the wheels to
the `SOURCE_DATE_EPOCH`.
  • Loading branch information
manthey committed Sep 2, 2019
1 parent 6370293 commit dd597ff
Show file tree
Hide file tree
Showing 44 changed files with 89 additions and 45 deletions.
95 changes: 68 additions & 27 deletions Dockerfile

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@
set -e

docker pull quay.io/pypa/manylinux2010_x86_64:latest
docker build --force-rm -t manthey/large_image_wheels .
# Use the author date (not the commit date) for SOURCE_DATE_EPOCH. This
# allows adding the generated wheels to an existing commit without changing the
# epoch used in the build.
docker build --force-rm -t manthey/large_image_wheels --build-arg SOURCE_DATE_EPOCH=$(git log -1 --pretty="format:%at" Dockerfile) .
mkdir -p docs
ls -al docs
# echo run -v `pwd`/docs:/opt/mount --rm --entrypoint bash manthey/large_image_wheels -c 'cp /io/wheelhouse/{GDAL,libtiff,mapnik,openslide_python,pyvips,psutil,ujson,pyproj}*many* /opt/mount/. && chown '`id -u`':'`id -g`' /opt/mount/*.whl'
docker run -v `pwd`/docs:/opt/mount --rm --entrypoint bash manthey/large_image_wheels -c 'cp /io/wheelhouse/{GDAL,libtiff,mapnik,openslide_python,pyvips,psutil,ujson,pyproj}*many* /opt/mount/. && chown '`id -u`':'`id -g`' /opt/mount/*.whl'
python make_index.py
ls -al docs
python check_versions.py > docs/versions.txt
python check_versions.py > docs/versions.txt
git diff docs/versions.txt | cat

Loading

0 comments on commit dd597ff

Please sign in to comment.