piston/packages/python.mk

27 lines
599 B
Makefile
Raw Normal View History

2021-02-27 06:28:08 +01:00
NAME=python
AUTHOR=Thomas Hobson <thomas@hexf.me>
DEPENDENCIES=
COMPILED=false
VERSIONS=3.5.1 3.9.1
2021-02-27 06:28:08 +01:00
include common.mk
${RUN_FILE}:
echo 'python${VERSION_MINOR} $$*' > $@
${ENV_FILE}:
echo 'export PATH=$$PWD/bin:$$PATH' > $@
${BIN_DIR}: ${BUILD_DIR}Python-${VERSION}/
2021-02-27 10:07:44 +01:00
$(eval TMP_DIR=${PWD}/${BUILD_DIR}tmpout/)
2021-02-27 10:07:44 +01:00
cd $< && ./configure --prefix ${PREFIX}
$(MAKE) -C $<
2021-02-27 10:07:44 +01:00
DESTDIR=${TMP_DIR} $(MAKE) -C $< altinstall
mv ${TMP_DIR}${PREFIX} ${BIN_DIR} && rm -rf ${TMP_DIR}
2021-02-27 06:28:08 +01:00
${BUILD_DIR}Python-${VERSION}.tar.gz:
2021-02-27 06:28:08 +01:00
curl "https://www.python.org/ftp/python/${VERSION}/Python-${VERSION}.tgz" -o $@