moved everything to different stages
This commit is contained in:
28
stage/prechroot/python.bash
Normal file
28
stage/prechroot/python.bash
Normal file
@@ -0,0 +1,28 @@
|
||||
|
||||
fetch $PYTHON_URL
|
||||
|
||||
sudo chroot "$SYSROOT" /usr/bin/env -i \
|
||||
MAKEFLAGS="$MAKEFLAGS" \
|
||||
PATH=/usr/bin:/usr/sbin \
|
||||
SOURCES=/sources \
|
||||
PYTHON_VERSION=$PYTHON_VERSION \
|
||||
/usr/bin/bash <<- "EOF"
|
||||
set -euo pipefail
|
||||
|
||||
cd "$SOURCES" && tar xf Python-$PYTHON_VERSION.tar.xz && cd Python-$PYTHON_VERSION
|
||||
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--enable-shared \
|
||||
--without-static-libpython \
|
||||
--disable-test-modules \
|
||||
--without-ensurepip \
|
||||
--silent \
|
||||
--quiet
|
||||
|
||||
make && make install
|
||||
|
||||
rm -rf /usr/lib/python$PYTHON_VERSION/test
|
||||
|
||||
cd "$SOURCES" && rm -rf Python-$PYTHON_VERSION
|
||||
EOF
|
||||
Reference in New Issue
Block a user