-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_manylinux_in_docker
executable file
·50 lines (42 loc) · 1.73 KB
/
build_manylinux_in_docker
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# 2018-12-05 Nick Lloyd
# ---------------------
# Builds the manylinux wheels python version of umkehr
# Development of the docker image used to build the manylinux wheels is at https://github.com/pypa/manylinux
# The docker image itself is downloaded from quay.io/pypa/manylinux1_x86_64
# A demo of the manylinux build system is at https://github.com/pypa/python-manylinux-demo
#
# Here is how I run the docker image on my windows system.
# I share the umkehr development folder with the docker image.
#
# docker run -v C:\Users\nickl\Documents\Work\software\ARG_Packages:/packages -i -t 41c74197534c /bin/bash
# cd /packages/umkehr
# ./build_manylinux_in_docker
#----------------------------------------------------------------------------------------------------------
autoconf configure.in > configure
./configure --enable-manylinux PYVERSION=3.4 PYBASEDIR=/opt/python/cp34-cp34m
make clean
make
./configure --enable-manylinux PYVERSION=3.5 PYBASEDIR=/opt/python/cp35-cp35m
make clean
make
./configure --enable-manylinux PYVERSION=3.6 PYBASEDIR=/opt/python/cp36-cp36m
make clean
make
./configure --enable-manylinux PYVERSION=3.7 PYBASEDIR=/opt/python/cp37-cp37m
make clean
make
rm -f libumkehr_codelib.a
for whl in wheelhouse/*.whl
do
auditwheel repair "$whl" -w wheelhouse/
done
rm -f ./wheelhouse/umkehr*-cp36-cp36m-linux_*.whl
rm -f ./wheelhouse/umkehr*-cp37-cp37m-linux_*.whl
echo " "
echo "-------------------------------------------------------------------------------------------"
echo "| The umkehr manylinux wheels for python 3.6 and python 3.7 64 bit are built and are in "
echo "| folder:"
echo "| ./wheelhouse"
echo "-------------------------------------------------------------------------------------------"
echo " "
ls -al ./wheelhouse/*.whl