pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/python extension.mk: remove PY_PEP3147, mention c...
details: https://anonhg.NetBSD.org/pkgsrc/rev/a19bb9689fb1
branches: trunk
changeset: 316519:a19bb9689fb1
user: adam <adam%pkgsrc.org@localhost>
date: Fri Dec 14 13:09:10 2018 +0000
description:
extension.mk: remove PY_PEP3147, mention correct patch, clean-up
diffstat:
lang/python/extension.mk | 24 +++++++++++-------------
1 files changed, 11 insertions(+), 13 deletions(-)
diffs (67 lines):
diff -r dd181fd2b55d -r a19bb9689fb1 lang/python/extension.mk
--- a/lang/python/extension.mk Fri Dec 14 12:40:28 2018 +0000
+++ b/lang/python/extension.mk Fri Dec 14 13:09:10 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: extension.mk,v 1.54 2018/09/02 21:53:03 wiz Exp $
+# $NetBSD: extension.mk,v 1.55 2018/12/14 13:09:10 adam Exp $
.include "../../lang/python/pyversion.mk"
@@ -16,22 +16,22 @@
PYSETUP?= setup.py
PYSETUPBUILDTARGET?= build
-PYSETUPBUILDARGS?= #empty
+PYSETUPBUILDARGS?= # empty
# Python 3.5+ supports parallel building
-.if defined(MAKE_JOBS) && ${_PYTHON_VERSION} != 27 && ${_PYTHON_VERSION} != 34
-. if !defined(MAKE_JOBS_SAFE) || empty(MAKE_JOBS_SAFE:M[nN][oO])
+. if defined(MAKE_JOBS) && ${_PYTHON_VERSION} != 27 && ${_PYTHON_VERSION} != 34
+. if !defined(MAKE_JOBS_SAFE) || empty(MAKE_JOBS_SAFE:M[nN][oO])
PYSETUPBUILDARGS+= -j${MAKE_JOBS}
+. endif
. endif
-.endif
-PYSETUPARGS?= #empty
-PYSETUPINSTALLARGS?= #empty
+PYSETUPARGS?= # empty
+PYSETUPINSTALLARGS?= # empty
PYSETUPOPTARGS?= -c -O1
_PYSETUPINSTALLARGS= ${PYSETUPINSTALLARGS} ${PYSETUPOPTARGS} ${_PYSETUPTOOLSINSTALLARGS}
_PYSETUPINSTALLARGS+= --root=${DESTDIR:Q}
PY_PATCHPLIST?= yes
PYSETUPTESTTARGET?= test
-PYSETUPTESTARGS?= #empty
-PYSETUPSUBDIR?= #empty
+PYSETUPTESTARGS?= # empty
+PYSETUPSUBDIR?= # empty
do-build:
(cd ${WRKSRC}/${PYSETUPSUBDIR} && ${SETENV} ${MAKE_ENV} ${PYTHONBIN} \
@@ -40,6 +40,7 @@
do-install:
(cd ${WRKSRC}/${PYSETUPSUBDIR} && ${SETENV} ${INSTALL_ENV} ${MAKE_ENV} \
${PYTHONBIN} ${PYSETUP} ${PYSETUPARGS} "install" ${_PYSETUPINSTALLARGS})
+
. if !target(do-test) && !(defined(TEST_TARGET) && !empty(TEST_TARGET))
do-test:
(cd ${WRKSRC}/${PYSETUPSUBDIR} && ${SETENV} ${TEST_ENV} ${PYTHONBIN} \
@@ -56,7 +57,7 @@
# appears to be that creating egg info files was new in Python 2.5.
PY_NO_EGG?= yes
.if !empty(PY_NO_EGG:M[yY][eE][sS])
-# see python*/patches/patch-av
+# see python*/patches/patch-Lib_distutils_command_install.py
INSTALL_ENV+= PKGSRC_PYTHON_NO_EGG=defined
.endif
@@ -71,9 +72,6 @@
# prepare Python>=3.2 bytecode file location change
# http://www.python.org/dev/peps/pep-3147/
.if empty(_PYTHON_VERSION:M2?)
-PY_PEP3147?= yes
-.endif
-.if defined(PY_PEP3147) && !empty(PY_PEP3147:M[yY][eE][sS])
PLIST_AWK+= -f ${PKGSRCDIR}/lang/python/plist-python.awk
PLIST_AWK_ENV+= PYVERS="${PYVERSSUFFIX:S/.//}"
PRINT_PLIST_AWK+= /^[^@]/ && /[^\/]+\.py[co]$$/ {
Home |
Main Index |
Thread Index |
Old Index