@@ -11,6 +11,9 @@ CPYTHON_VERSIONS="2.6.9 2.7.11 3.3.6 3.4.4 3.5.1"
11
11
# archive
12
12
OPENSSL_ROOT=openssl-1.0.2g
13
13
OPENSSL_HASH=b784b1b3907ce39abf4098702dade6365522a253ad1552e267a9a0e89594aa33
14
+ EPEL_RPM_HASH=0dcc89f9bf67a2a515bad64569b7a9615edc5e018f676a578d5fd0f17d3c81d4
15
+ DEVTOOLS_HASH=a8ebeb4bed624700f727179e6ef771dafe47651131a00a78b342251415646acc
16
+ PATCHELF_HASH=d9afdff4baeacfbc64861454f368b7f2c15c44d245293f7587bbf726bfe722fb
14
17
15
18
# Dependencies for compiling Python that we want to remove from
16
19
# the final image after compiling Python
@@ -26,8 +29,12 @@ source $MY_DIR/build_utils.sh
26
29
# EPEL support
27
30
yum -y install wget curl
28
31
curl -sLO https://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
32
+ check_sha256sum epel-release-5-4.noarch.rpm $EPEL_RPM_HASH
33
+
29
34
# Dev toolset (for LLVM and other projects requiring C++11 support)
30
- curl -sL http://people.centos.org/tru/devtools-2/devtools-2.repo > /etc/yum.repos.d/devtools-2.repo
35
+ curl -sLO http://people.centos.org/tru/devtools-2/devtools-2.repo
36
+ check_sha256sum devtools-2.repo $DEVTOOLS_HASH
37
+ mv devtools-2.repo /etc/yum.repos.d/devtools-2.repo
31
38
rpm -Uvh --replacepkgs epel-release-5* .rpm
32
39
rm -f epel-release-5* .rpm
33
40
@@ -50,6 +57,7 @@ rm -rf /usr/local/ssl
50
57
51
58
# Install patchelf and auditwheel (latest with unreleased bug fixes)
52
59
curl -sLO https://nipy.bic.berkeley.edu/manylinux/patchelf-0.9njs2.tar.gz
60
+ check_sha256sum patchelf-0.9njs2.tar.gz $PATCHELF_HASH
53
61
tar -xzf patchelf-0.9njs2.tar.gz
54
62
(cd patchelf-0.9njs2 && ./configure && make && make install)
55
63
rm -rf patchelf-0.9njs2.tar.gz patchelf-0.9njs2
0 commit comments