pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/time/py-pendulum
Module Name: pkgsrc
Committed By: leot
Date: Tue Aug 14 15:23:51 UTC 2018
Modified Files:
pkgsrc/time/py-pendulum: Makefile PLIST
Log Message:
py-pendulum: Disable C Extensions when building the 2.7 multi-package
C Extensions code does not seem supported when it is built with Python 2.7.
Pass the environment variable to avoid compiling it and failing and adjust PLIST
accordingly.
Reported via #pkgsrc by Juraj Lutter, thanks!
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 pkgsrc/time/py-pendulum/Makefile
cvs rdiff -u -r1.5 -r1.6 pkgsrc/time/py-pendulum/PLIST
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/time/py-pendulum/Makefile
diff -u pkgsrc/time/py-pendulum/Makefile:1.10 pkgsrc/time/py-pendulum/Makefile:1.11
--- pkgsrc/time/py-pendulum/Makefile:1.10 Tue Aug 7 10:09:43 2018
+++ pkgsrc/time/py-pendulum/Makefile Tue Aug 14 15:23:51 2018
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2018/08/07 10:09:43 adam Exp $
+# $NetBSD: Makefile,v 1.11 2018/08/14 15:23:51 leot Exp $
DISTNAME= pendulum-2.0.3
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
@@ -18,5 +18,12 @@ DEPENDS+= ${PYPKGPREFIX}-tzdata>=2018.3:
DEPENDS+= ${PYPKGPREFIX}-typing-[0-9]*:../../devel/py-typing
.endif
+#
+# XXX: C Extensions code is only supported with Python 3
+#
+.if "${PYPKGPREFIX}" == "py27"
+MAKE_ENV+= PENDULUM_EXTENSIONS=0
+.endif
+
.include "../../lang/python/distutils.mk"
.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/time/py-pendulum/PLIST
diff -u pkgsrc/time/py-pendulum/PLIST:1.5 pkgsrc/time/py-pendulum/PLIST:1.6
--- pkgsrc/time/py-pendulum/PLIST:1.5 Sat Jun 16 13:06:54 2018
+++ pkgsrc/time/py-pendulum/PLIST Tue Aug 14 15:23:51 2018
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.5 2018/06/16 13:06:54 adam Exp $
+@comment $NetBSD: PLIST,v 1.6 2018/08/14 15:23:51 leot Exp $
${PYSITELIB}/${EGG_FILE}
${PYSITELIB}/pendulum/__init__.py
${PYSITELIB}/pendulum/__init__.pyc
@@ -10,7 +10,7 @@ ${PYSITELIB}/pendulum/_extensions/__init
${PYSITELIB}/pendulum/_extensions/__init__.pyc
${PYSITELIB}/pendulum/_extensions/__init__.pyo
${PYSITELIB}/pendulum/_extensions/_helpers.c
-${PYSITELIB}/pendulum/_extensions/_helpers.so
+${PLIST.py3x}${PYSITELIB}/pendulum/_extensions/_helpers.so
${PYSITELIB}/pendulum/_extensions/helpers.py
${PYSITELIB}/pendulum/_extensions/helpers.pyc
${PYSITELIB}/pendulum/_extensions/helpers.pyo
@@ -159,7 +159,7 @@ ${PYSITELIB}/pendulum/parsing/__init__.p
${PYSITELIB}/pendulum/parsing/__init__.pyc
${PYSITELIB}/pendulum/parsing/__init__.pyo
${PYSITELIB}/pendulum/parsing/_iso8601.c
-${PYSITELIB}/pendulum/parsing/_iso8601.so
+${PLIST.py3x}${PYSITELIB}/pendulum/parsing/_iso8601.so
${PYSITELIB}/pendulum/parsing/exceptions/__init__.py
${PYSITELIB}/pendulum/parsing/exceptions/__init__.pyc
${PYSITELIB}/pendulum/parsing/exceptions/__init__.pyo
Home |
Main Index |
Thread Index |
Old Index