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