-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.sh
executable file
·29 lines (24 loc) · 1.28 KB
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env bash
set -e
docker pull quay.io/pypa/manylinux2014_x86_64:latest
# We could use the latest commit author date for the SOURCE_DATE_EPOCH by
# adding
# --build-arg SOURCE_DATE_EPOCH=$(git log -1 --pretty="format:%at" Dockerfile)
# to the build command. However, since we pull in the versions as part of the
# build, this isn't necessary and introduces extra change from commits.
# This can be hard to debug with buildkit, as you don't get intermediate
# images. You can go back to the old build method:
# export DOCKER_BUILDKIT=0
docker build --force-rm -t girder/large_image_wheels --build-arg PYPY=false .
# docker build --force-rm -t girder/large_image_wheels .
mkdir -p wheels
ls -al wheels
rm -f wheels/*many*.whl
docker run -v `pwd`/wheels:/opt/mount --rm --entrypoint bash girder/large_image_wheels -c 'cp --preserve=timestamps /io/wheelhouse/{pylibtiff,Glymur,GDAL,mapnik,openslide_python,pyvips,pylibmc,python_javabridge}*many* /opt/mount/. && cp --preserve=timestamps /io/wheelhouse/*bioformats*.whl /opt/mount/. && chown '`id -u`':'`id -g`' /opt/mount/*.whl'
# rm -f wheels/*none*.whl
cp --preserve=timestamps wheels/*.whl wheelhouse/.
python3 make_index.py
python3 make_index.py wheels
ls -al wheels
# python3 check_versions.py > versions.txt
git diff versions.txt | cat