2021-02-19 04:09:56 +01:00
|
|
|
NAME=python
|
|
|
|
VERSION=3.9.1
|
|
|
|
AUTHOR=Thomas Hobson <thomas@hexf.me>
|
|
|
|
DEPS=
|
2021-02-19 05:32:35 +01:00
|
|
|
COMPILED=false
|
2021-02-19 04:48:46 +01:00
|
|
|
|
|
|
|
MAKE_JOBS=64
|
2021-02-19 04:09:56 +01:00
|
|
|
|
|
|
|
include ../../Makefile
|
|
|
|
|
2021-02-19 04:48:46 +01:00
|
|
|
run:
|
2021-02-19 05:32:35 +01:00
|
|
|
echo "python3.9 $*" > run
|
2021-02-19 04:48:46 +01:00
|
|
|
|
2021-02-19 05:32:35 +01:00
|
|
|
python-${VERSION}/environment:
|
|
|
|
echo 'export PATH=$$PWD/python-${VERSION}/bin:$$PATH' > $@
|
|
|
|
|
|
|
|
python-${VERSION}/: Python-${VERSION}/
|
2021-02-19 04:48:46 +01:00
|
|
|
cd $< && ./configure --prefix /
|
|
|
|
make -j${MAKE_JOBS} -C $<
|
2021-02-19 05:32:35 +01:00
|
|
|
DESTDIR=../$@ make -j${MAKE_JOBS} -C $< altinstall || true
|
2021-02-19 04:09:56 +01:00
|
|
|
|
|
|
|
Python-${VERSION}.tgz:
|
2021-02-19 05:32:35 +01:00
|
|
|
curl "https://www.python.org/ftp/python/${VERSION}/$@" -o $@
|
2021-02-19 04:09:56 +01:00
|
|
|
|
2021-02-19 04:48:46 +01:00
|
|
|
%/: %.tgz
|
|
|
|
tar xzvf $<
|
2021-02-19 04:09:56 +01:00
|
|
|
|
|
|
|
|