mirror of
https://github.com/engineer-man/piston.git
synced 2025-07-12 08:48:46 +02:00
19 lines
399 B
Bash
Executable file
19 lines
399 B
Bash
Executable file
#!/bin/bash
|
|
|
|
mkdir -p build/tmp build/python
|
|
cd build
|
|
|
|
curl "https://www.python.org/ftp/python/3.9.1/Python-3.9.1.tgz" -o python.tar.gz
|
|
tar xzf python.tar.gz --strip-components=1 -C python
|
|
|
|
cd python
|
|
|
|
|
|
./configure --prefix /piston/packages/python/3.9.1/python-3.9.1
|
|
make -j$(nproc)
|
|
DESTDIR=build/tmp make altinstall -j$(nproc)
|
|
|
|
|
|
mv build/tmp/piston/packages/python/3.9.1/python-3.9.1 ../../output
|
|
|
|
|