piston/packages/python/base.mk

19 lines
501 B
Makefile
Raw Normal View History

2021-02-19 06:53:26 +01:00
AUTHOR=Thomas Hobson <thomas@hexf.me>
DEPS=
COMPILED=false
include ../../common.mk
run:
echo 'python$(shell grep -oP "\d+.\d+"<<<${VERSION}) $$*' > run
2021-02-20 06:34:44 +01:00
${NAME}-${VERSION}/environment:
2021-02-21 00:57:40 +01:00
echo 'export PATH=$$PWD/bin:$$PATH' > $@
2021-02-19 06:53:26 +01:00
2021-02-20 06:34:44 +01:00
${NAME}-${VERSION}/: Python-${VERSION}/
2021-02-19 06:53:26 +01:00
cd $< && ./configure --prefix /
$(MAKE) -j$(or ${MAKE_JOBS},64) -C $<
DESTDIR=../$@ $(MAKE) -j$(or ${MAKE_JOBS},64) -C $< altinstall || true
2021-02-20 15:29:32 +01:00
Python-${VERSION}.tgz:
2021-02-19 06:53:26 +01:00
curl "https://www.python.org/ftp/python/${VERSION}/$@" -o $@