Commit 93cc162f authored by Tim Schoof's avatar Tim Schoof
Browse files

Upgrade to Python 3.7

parent 39ee7570
NAME=schooft/manylinux_freeze
NAME=schooft/manylinux_freeze:3.7
docker build -t ${NAME} .
......
......@@ -14,7 +14,6 @@ mkdir -p build_scripts
pushd build_scripts
curl -fsSLO https://github.com/pypa/manylinux/raw/manylinux1/docker/build_scripts/cpython-pubkeys.txt
curl -fsSLO https://github.com/pypa/manylinux/raw/manylinux1/docker/build_scripts/build_env.sh
curl -fsSLO https://github.com/pypa/manylinux/raw/manylinux1/docker/build_scripts/py27-requirements.txt
curl -fsSLO https://github.com/pypa/manylinux/raw/manylinux1/docker/build_scripts/python-tag-abi-tag.py
curl -fsSLO https://github.com/pypa/manylinux/raw/manylinux1/docker/build_scripts/requirements.txt
curl -fsSLO https://github.com/pypa/manylinux/raw/manylinux1/docker/build_scripts/ambv-pubkey.txt
......@@ -24,7 +23,7 @@ source build_scripts/build_env.sh
# overwrite, as we only need a few python versions
# of the form <maj>.<min>.<rev> or <maj>.<min>.<rev>rc<n>
CPYTHON_VERSIONS="2.7.18"
CPYTHON_VERSIONS="3.7.10"
# Dependencies for compiling Python that we want to remove from
......@@ -82,7 +81,7 @@ function do_cpython_build {
mkdir -p ${prefix}/lib
# BEGIN CHANGE for shared build
# ./configure --prefix=${prefix} --disable-shared $unicode_flags > /dev/null
./configure --prefix=${prefix} --enable-shared --enable-optimizations $unicode_flags > /dev/null
./configure --prefix=${prefix} --enable-shared $unicode_flags > /dev/null
# END CHANGE
make -j2 > /dev/null
......@@ -126,7 +125,7 @@ function build_cpython {
local py_dist_dir=$(pyver_dist_dir $py_ver)
curl -fsSLO $PYTHON_DOWNLOAD_URL/$py_dist_dir/Python-$py_ver.tgz
curl -fsSLO $PYTHON_DOWNLOAD_URL/$py_dist_dir/Python-$py_ver.tgz.asc
gpg --verify Python-$py_ver.tgz.asc
gpg --verify --no-auto-key-locate Python-$py_ver.tgz.asc
if [ $(lex_pyver $py_ver) -lt $(lex_pyver 3.3) ]; then
# BEGIN CHANGE for shared build
# we only need the wide unicode version
......
NAME=schooft/manylinux_freeze
NAME=schooft/manylinux_freeze:3.7
vagrant rsync
vagrant ssh -c "
cd /vagrant \
&& docker build -t ${NAME} .
"
vagrant ssh -c "docker save ${NAME}" -- -T | docker load
" \
&& vagrant ssh -c "docker save ${NAME}" -- -T | docker load
if [[ $1 == "push" ]]; then
docker push ${NAME}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment