File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/bash
22set -e -x
33
4- function install_openssl {
5- # Compile and parallel-install a newer OpenSSL version so that curl can
6- # download from the rust servers
7- pushd /usr/src
8- wget -q ftp://ftp.openssl.org/source/openssl-${1} .tar.gz
9- tar xf openssl-${1} .tar.gz
10- cd openssl-${1}
11- ./config --prefix=/opt/openssl shared > /dev/null
12- make > /dev/null
13- make install > /dev/null
14- export LD_LIBRARY_PATH=/opt/openssl/lib:$LD_LIBRARY_PATH
15- popd
16- }
17-
18- function install_curl {
19- pushd /usr/src
20- # Compile an up-to-date curl version that links to our own OpenSSL installation
21- wget -q --no-check-certificate http://curl.haxx.se/download/curl-${1} .tar.gz
22- tar xf curl-${1} .tar.gz
23- cd curl-${1}
24- ./configure --with-ssl=/opt/openssl --prefix=/opt/curl > /dev/null
25- make > /dev/null
26- make install > /dev/null
27- export PATH=/opt/curl/bin:$PATH
28- popd
29- }
30-
314function install_rust {
325 curl https://static.rust-lang.org/rustup.sh > /tmp/rustup.sh
336 chmod +x /tmp/rustup.sh
@@ -51,8 +24,6 @@ function clean_project {
5124 popd
5225}
5326
54- OPENSSL_VERSION=1.0.2n
55- CURL_VERSION=7.49.0
5627RUST_CHANNEL=nightly
5728
5829# It doesn't matter with which Python version we build the wheel, so we
7546 # Clean build files
7647 clean_project
7748
78- install_openssl $OPENSSL_VERSION
79- install_curl $CURL_VERSION
8049 install_rust $RUST_CHANNEL
8150
8251 # Remove old wheels
You can’t perform that action at this time.
0 commit comments