pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/time/py-pendulum py-pendulum: Disable C Extensions whe...
details: https://anonhg.NetBSD.org/pkgsrc/rev/3a87d6c1c7b2
branches: trunk
changeset: 311574:3a87d6c1c7b2
user: leot <leot%pkgsrc.org@localhost>
date: Tue Aug 14 15:23:51 2018 +0000
description:
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!
diffstat:
time/py-pendulum/Makefile | 9 ++++++++-
time/py-pendulum/PLIST | 6 +++---
2 files changed, 11 insertions(+), 4 deletions(-)
diffs (49 lines):
diff -r 4c8fe32f8c32 -r 3a87d6c1c7b2 time/py-pendulum/Makefile
--- a/time/py-pendulum/Makefile Tue Aug 14 14:54:26 2018 +0000
+++ b/time/py-pendulum/Makefile Tue Aug 14 15:23:51 2018 +0000
@@ -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}-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"
diff -r 4c8fe32f8c32 -r 3a87d6c1c7b2 time/py-pendulum/PLIST
--- a/time/py-pendulum/PLIST Tue Aug 14 14:54:26 2018 +0000
+++ b/time/py-pendulum/PLIST Tue Aug 14 15:23:51 2018 +0000
@@ -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__.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__.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