Skip to content

Commit 96b47a2

Browse files
authored
Merge pull request pypa#196 from lelit/py37
Add Python 3.7.0b4
2 parents 3625dc6 + 9c3e945 commit 96b47a2

File tree

4 files changed

+20
-8
lines changed

4 files changed

+20
-8
lines changed

README.rst

+6-4
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ directory for source code.
5858

5959
The images currently contain:
6060

61-
- CPython 2.7, 3.4, 3.5 and 3.6, installed in
61+
- CPython 2.7, 3.4, 3.5, 3.6 and 3.7, installed in
6262
``/opt/python/<python tag>-<abi tag>``. The directories are named
6363
after the PEP 425 tags for each environment --
6464
e.g. ``/opt/python/cp27-cp27mu`` contains a wide-unicode CPython 2.7
@@ -99,16 +99,18 @@ $ PLATFORM=$(uname -m) TRAVIS_COMMIT=latest ./build.sh
9999

100100
Example
101101
-------
102+
102103
An example project which builds 32- and 64-bit wheels for each Python interpreter
103104
version can be found here: https://github.com/pypa/python-manylinux-demo.
104105

105106
This demonstrates how to use these docker images in conjunction with auditwheel
106107
to build manylinux-compatible wheels using the free `travis ci <https://travis-ci.org/>`_
107-
continuous integration service.
108+
continuous integration service.
108109

109-
(NB: for the 32-bit images running on a 64-bit host machine, it's necessary to run
110+
(NB: for the 32-bit images running on a 64-bit host machine, it's necessary to run
110111
everything under the command line program `linux32`, which changes reported architecture
111-
in new program environment. See `this example invocation <https://github.com/pypa/python-manylinux-demo/blob/master/.travis.yml#L14>`_)
112+
in new program environment. See `this example invocation
113+
<https://github.com/pypa/python-manylinux-demo/blob/master/.travis.yml#L14>`_)
112114

113115
The PEP itself
114116
--------------

docker/build_scripts/build.sh

100644100755
+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ MY_DIR=$(dirname "${BASH_SOURCE[0]}")
1111
# Dependencies for compiling Python that we want to remove from
1212
# the final image after compiling Python
1313
# GPG installed to verify signatures on Python source tarballs.
14-
PYTHON_COMPILE_DEPS="zlib-devel bzip2-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel gpg"
14+
PYTHON_COMPILE_DEPS="zlib-devel bzip2-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel gpg libffi-devel"
1515

1616
# Libraries that are allowed as part of the manylinux1 profile
1717
MANYLINUX1_DEPS="glibc-devel libstdc++-devel glib2-devel libX11-devel libXext-devel libXrender-devel mesa-libGL-devel libICE-devel libSM-devel ncurses-devel"

docker/build_scripts/build_env.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# source me
22

33
PYTHON_DOWNLOAD_URL=https://www.python.org/ftp/python
4-
CPYTHON_VERSIONS="2.7.15 3.4.8 3.5.5 3.6.5"
4+
CPYTHON_VERSIONS="2.7.15 3.4.8 3.5.5 3.6.5 3.7.0rc1"
55

66
# openssl version to build, with expected sha256 hash of .tar.gz
77
# archive.

docker/build_scripts/build_utils.sh

+12-2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@ function lex_pyver {
1919
}
2020

2121

22+
function pyver_dist_dir {
23+
# Echoes the dist directory name of given pyver, removing alpha/beta prerelease
24+
# Thus:
25+
# 3.2.1 -> 3.2.1
26+
# 3.7.0b4 -> 3.7.0
27+
echo $1 | awk -F "." '{printf "%d.%d.%d", $1, $2, $3}'
28+
}
29+
30+
2231
function do_cpython_build {
2332
local py_ver=$1
2433
check_var $py_ver
@@ -64,8 +73,9 @@ function build_cpython {
6473
local py_ver=$1
6574
check_var $py_ver
6675
check_var $PYTHON_DOWNLOAD_URL
67-
curl -fsSLO $PYTHON_DOWNLOAD_URL/$py_ver/Python-$py_ver.tgz
68-
curl -fsSLO $PYTHON_DOWNLOAD_URL/$py_ver/Python-$py_ver.tgz.asc
76+
local py_dist_dir=$(pyver_dist_dir $py_ver)
77+
curl -fsSLO $PYTHON_DOWNLOAD_URL/$py_dist_dir/Python-$py_ver.tgz
78+
curl -fsSLO $PYTHON_DOWNLOAD_URL/$py_dist_dir/Python-$py_ver.tgz.asc
6979
gpg --verify Python-$py_ver.tgz.asc
7080
if [ $(lex_pyver $py_ver) -lt $(lex_pyver 3.3) ]; then
7181
do_cpython_build $py_ver ucs2

0 commit comments

Comments
 (0)