2021-02-27 06:28:08 +01:00
|
|
|
NAME=python
|
|
|
|
AUTHOR=Thomas Hobson <thomas@hexf.me>
|
|
|
|
DEPENDENCIES=
|
|
|
|
COMPILED=false
|
2021-02-28 06:20:10 +01:00
|
|
|
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-28 06:20:10 +01:00
|
|
|
|
2021-02-27 10:07:44 +01:00
|
|
|
cd $< && ./configure --prefix ${PREFIX}
|
2021-02-27 08:47:33 +01:00
|
|
|
$(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
|
|
|
|
2021-02-27 07:43:25 +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 $@
|