pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

python 3.7 problems



So a recent update of py-setuptools_scm introduced a cyclic dependency
for python 3.7 because it needs the importlib-metadata module, but
that needs py-setuptools_scm to build.

The missing dependency now leads to heavy fallout for python 3.7 modules, a sample:

http://www.ki.nu/pkgsrc/reports/current/NetBSD-9.0/20221023.0731/py37-py-1.11.0/build.log
http://www.ki.nu/pkgsrc/reports/current/NetBSD-9.0/20221023.0731/py37-iniconfig-1.1.1nb1/build.log
http://www.ki.nu/pkgsrc/reports/current/NetBSD-9.0/20221023.0731/py37-dateutil-2.8.2nb1/build.log
http://www.ki.nu/pkgsrc/reports/current/NetBSD-9.0/20221023.0731/py37-filelock-3.8.0/build.log
http://www.ki.nu/pkgsrc/reports/current/NetBSD-9.0/20221023.0731/py37-importlib-resources-3.0.0nb2/build.log
http://www.ki.nu/pkgsrc/reports/current/NetBSD-9.0/20221023.0731/py37-lazy-object-proxy-1.7.1nb1/build.log
http://www.ki.nu/pkgsrc/reports/current/NetBSD-9.0/20221023.0731/py37-execnet-1.9.0nb1/build.log

Is someone willing to fight the windmills and get one of the upstreams
to fix the cycle?

Or should we just give up on python 3.7? The official EOL is
2023-06-27 but we already have some packages in pkgsrc that do not
support this version any longer.

Other suggestions?
 Thomas

----- Forwarded message from Thomas Klausner <wiz%netbsd.org@localhost> -----

Date: Sun, 16 Oct 2022 06:32:00 +0000
From: Thomas Klausner <wiz%netbsd.org@localhost>
To: pkgsrc-changes%NetBSD.org@localhost
Subject: CVS commit: pkgsrc/devel/py-setuptools_scm
X-Mailer: log_accum

Module Name:	pkgsrc
Committed By:	wiz
Date:		Sun Oct 16 06:32:00 UTC 2022

Modified Files:
	pkgsrc/devel/py-setuptools_scm: Makefile

Log Message:
py-setuptools_scam: comment out py-importlib-metadata dependency

This is required per setup.cfg for python < 3.8, but this introduces
a cyclic dependency.

To do: mark this (and everything using it) as not for python 3.7, since
it probably won't work correctly?


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 pkgsrc/devel/py-setuptools_scm/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.


Modified files:

Index: pkgsrc/devel/py-setuptools_scm/Makefile
diff -u pkgsrc/devel/py-setuptools_scm/Makefile:1.33 pkgsrc/devel/py-setuptools_scm/Makefile:1.34
--- pkgsrc/devel/py-setuptools_scm/Makefile:1.33	Fri Oct 14 14:03:01 2022
+++ pkgsrc/devel/py-setuptools_scm/Makefile	Sun Oct 16 06:32:00 2022
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.33 2022/10/14 14:03:01 wiz Exp $
+# $NetBSD: Makefile,v 1.34 2022/10/16 06:32:00 wiz Exp $
 
 DISTNAME=	setuptools_scm-7.0.5
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
@@ -25,7 +25,8 @@ PYTHON_VERSIONS_INCOMPATIBLE=	27
 .include "../../lang/python/pyversion.mk"
 
 .if ${_PYTHON_VERSION} == 37
-DEPENDS+=	${PYPKGPREFIX}-importlib-metadata-[0-9]*:../../devel/py-importlib-metadata
+# required per setup.cfg, but this introduces a cyclic dependency
+#DEPENDS+=	${PYPKGPREFIX}-importlib-metadata-[0-9]*:../../devel/py-importlib-metadata
 .endif
 
 USE_LANGUAGES=	# none



----- End forwarded message -----


Home | Main Index | Thread Index | Old Index