]> git.lizzy.rs Git - rust.git/blob - src/ci/docker/host-x86_64/dist-x86_64-linux/build-python.sh
Merge commit '7c7683c8efe447b251d6c5ca6cce51233060f6e8' into clippyup
[rust.git] / src / ci / docker / host-x86_64 / dist-x86_64-linux / build-python.sh
1 #!/usr/bin/env bash
2
3 set -ex
4 source shared.sh
5
6 VERSION=$1
7 curl https://www.python.org/ftp/python/$VERSION/Python-$VERSION.tgz | \
8   tar xzf -
9
10 mkdir python-build
11 cd python-build
12
13 # Gotta do some hackery to tell python about our custom OpenSSL build, but other
14 # than that fairly normal.
15 CFLAGS='-I /rustroot/include' LDFLAGS='-L /rustroot/lib -L /rustroot/lib64' \
16     hide_output ../Python-$VERSION/configure --prefix=/rustroot
17 hide_output make -j10
18 hide_output make install
19
20 cd ..
21 rm -rf python-build
22 rm -rf Python-$VERSION