pkgsrc-Changes archive

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

CVS commit: pkgsrc/math/py-Theano



Module Name:    pkgsrc
Committed By:   wiz
Date:           Sun Nov  5 23:37:50 UTC 2023

Modified Files:
        pkgsrc/math/py-Theano: Makefile PLIST distinfo
Added Files:
        pkgsrc/math/py-Theano/patches: patch-versioneer.py

Log Message:
py-Theano: convert to wheel.mk

Fix build with Python 3.12.

Bump PKGREVISION.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 pkgsrc/math/py-Theano/Makefile
cvs rdiff -u -r1.3 -r1.4 pkgsrc/math/py-Theano/PLIST
cvs rdiff -u -r1.5 -r1.6 pkgsrc/math/py-Theano/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/math/py-Theano/patches/patch-versioneer.py

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

Modified files:

Index: pkgsrc/math/py-Theano/Makefile
diff -u pkgsrc/math/py-Theano/Makefile:1.13 pkgsrc/math/py-Theano/Makefile:1.14
--- pkgsrc/math/py-Theano/Makefile:1.13 Tue Aug  1 23:20:45 2023
+++ pkgsrc/math/py-Theano/Makefile      Sun Nov  5 23:37:50 2023
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.13 2023/08/01 23:20:45 wiz Exp $
+# $NetBSD: Makefile,v 1.14 2023/11/05 23:37:50 wiz Exp $
 
 DISTNAME=      Theano-1.0.4
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   3
+PKGREVISION=   4
 CATEGORIES=    math python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=T/Theano/}
 
@@ -11,6 +11,7 @@ HOMEPAGE=     http://deeplearning.net/softwa
 COMMENT=       Optimizing compiler for evaluating mathematical expressions
 LICENSE=       modified-bsd
 
+TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
 DEPENDS+=      ${PYPKGPREFIX}-scipy>=0.17.0:../../math/py-scipy
 DEPENDS+=      ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
 TEST_DEPENDS+= ${PYPKGPREFIX}-flake8-[0-9]*:../../devel/py-flake8
@@ -28,16 +29,11 @@ REPLACE_FILES.bash= theano/misc/check_bl
 
 PYTHON_VERSIONS_INCOMPATIBLE=  27 38
 
-USE_PKG_RESOURCES=     yes
-
 post-install:
        cd ${DESTDIR}${PREFIX}/bin && \
        ${MV} theano-cache theano-cache-${PYVERSSUFFIX} && \
        ${MV} theano-nose theano-nose-${PYVERSSUFFIX} || ${TRUE}
 
-do-test:
-       cd ${WRKSRC}/theano && pytest-${PYVERSSUFFIX} tests
-
-.include "../../lang/python/egg.mk"
+.include "../../lang/python/wheel.mk"
 .include "../../math/py-numpy/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/math/py-Theano/PLIST
diff -u pkgsrc/math/py-Theano/PLIST:1.3 pkgsrc/math/py-Theano/PLIST:1.4
--- pkgsrc/math/py-Theano/PLIST:1.3     Sat Jun 15 18:01:47 2019
+++ pkgsrc/math/py-Theano/PLIST Sun Nov  5 23:37:50 2023
@@ -1,12 +1,12 @@
-@comment $NetBSD: PLIST,v 1.3 2019/06/15 18:01:47 adam Exp $
+@comment $NetBSD: PLIST,v 1.4 2023/11/05 23:37:50 wiz Exp $
 bin/theano-cache-${PYVERSSUFFIX}
 bin/theano-nose-${PYVERSSUFFIX}
-${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
-${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
-${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
-${PYSITELIB}/${EGG_INFODIR}/requires.txt
-${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/${WHEEL_INFODIR}/LICENSE.txt
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
 ${PYSITELIB}/bin/__init__.py
 ${PYSITELIB}/bin/__init__.pyc
 ${PYSITELIB}/bin/__init__.pyo

Index: pkgsrc/math/py-Theano/distinfo
diff -u pkgsrc/math/py-Theano/distinfo:1.5 pkgsrc/math/py-Theano/distinfo:1.6
--- pkgsrc/math/py-Theano/distinfo:1.5  Tue Oct 26 10:55:59 2021
+++ pkgsrc/math/py-Theano/distinfo      Sun Nov  5 23:37:50 2023
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.5 2021/10/26 10:55:59 nia Exp $
+$NetBSD: distinfo,v 1.6 2023/11/05 23:37:50 wiz Exp $
 
 BLAKE2s (Theano-1.0.4.tar.gz) = 968e9e782252836a2ba943454cd5bcc42b66290b08a06c305fafac8035597816
 SHA512 (Theano-1.0.4.tar.gz) = 3cc7f9dbb606c3c997c8651c34dd861721d5a8b99d06ed0887306d5a5ad0d7e402fbe29dcb5ad2f513b3bf75966e41a2854ebdf9a4fb212607345f84f367de8c
 Size (Theano-1.0.4.tar.gz) = 2840691 bytes
+SHA1 (patch-versioneer.py) = fd751f29290df33524fe96546c8f03ed97fbf937

Added files:

Index: pkgsrc/math/py-Theano/patches/patch-versioneer.py
diff -u /dev/null pkgsrc/math/py-Theano/patches/patch-versioneer.py:1.1
--- /dev/null   Sun Nov  5 23:37:50 2023
+++ pkgsrc/math/py-Theano/patches/patch-versioneer.py   Sun Nov  5 23:37:50 2023
@@ -0,0 +1,18 @@
+$NetBSD: patch-versioneer.py,v 1.1 2023/11/05 23:37:50 wiz Exp $
+
+Fix build with Python 3.12.
+
+--- versioneer.py.orig 2019-01-15 21:29:47.000000000 +0000
++++ versioneer.py
+@@ -339,9 +339,9 @@ def get_config_from_root(root):
+     # configparser.NoOptionError (if it lacks "VCS="). See the docstring at
+     # the top of versioneer.py for instructions on writing your setup.cfg .
+     setup_cfg = os.path.join(root, "setup.cfg")
+-    parser = configparser.SafeConfigParser()
++    parser = configparser.ConfigParser()
+     with open(setup_cfg, "r") as f:
+-        parser.readfp(f)
++        parser.read_file(f)
+     VCS = parser.get("versioneer", "VCS")  # mandatory
+ 
+     def get(parser, name):



Home | Main Index | Thread Index | Old Index