pkg(python-3.9.1): match new build system
This commit is contained in:
parent
6391120176
commit
a24770e43a
|
@ -1,19 +1,10 @@
|
|||
#!/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
|
||||
|
||||
tar xzf python.tar.gz --strip-components=1
|
||||
rm python.tar.gz
|
||||
|
||||
./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
|
||||
|
||||
ln -s python python3.9
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
export PATH=$PWD/bin:$PATH
|
||||
export PATH=$PWD:$PATH
|
|
@ -2,6 +2,5 @@
|
|||
"language": "python",
|
||||
"version": "3.9.1",
|
||||
"author": "Thomas Hobson <thomas@hexf.me>",
|
||||
"dependencies": {},
|
||||
"aliases": ["py", "python3"]
|
||||
}
|
Loading…
Reference in New Issue