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