]>
Commit | Line | Data |
---|---|---|
abe05a73 | 1 | #!/usr/bin/env bash |
32a655c1 SL |
2 | |
3 | set -ex | |
4 | source shared.sh | |
5 | ||
6a06907d XL |
6 | VERSION=$1 |
7 | curl https://www.python.org/ftp/python/$VERSION/Python-$VERSION.tgz | \ | |
32a655c1 SL |
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' \ | |
6a06907d | 16 | hide_output ../Python-$VERSION/configure --prefix=/rustroot |
32a655c1 SL |
17 | hide_output make -j10 |
18 | hide_output make install | |
19 | ||
20 | cd .. | |
21 | rm -rf python-build | |
6a06907d | 22 | rm -rf Python-$VERSION |