Better python packaging

This commit is contained in:
Thomas Hobson 2021-02-19 18:53:26 +13:00
parent 51b06018c1
commit 4f3e7a536d
No known key found for this signature in database
GPG key ID: 9F1FD9D87950DB6F
6 changed files with 54 additions and 32 deletions

View file

@ -1,28 +0,0 @@
NAME=python
VERSION=3.9.1
AUTHOR=Thomas Hobson <thomas@hexf.me>
DEPS=
COMPILED=false
MAKE_JOBS=64
include ../../Makefile
run:
echo "python3.9 $*" > run
python-${VERSION}/environment:
echo 'export PATH=$$PWD/python-${VERSION}/bin:$$PATH' > $@
python-${VERSION}/: Python-${VERSION}/
cd $< && ./configure --prefix /
make -j${MAKE_JOBS} -C $<
DESTDIR=../$@ make -j${MAKE_JOBS} -C $< altinstall || true
Python-${VERSION}.tgz:
curl "https://www.python.org/ftp/python/${VERSION}/$@" -o $@
%/: %.tgz
tar xzvf $<