git: 2dab5cd8cbfe - main - devel/py-zope.generations: Fix build with setuptools 58.0.0+
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 25 Mar 2022 13:50:23 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=2dab5cd8cbfe9d7da51dcef21ac936eacaa22a81 commit 2dab5cd8cbfe9d7da51dcef21ac936eacaa22a81 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2022-03-25 13:32:30 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2022-03-25 13:38:14 +0000 devel/py-zope.generations: Fix build with setuptools 58.0.0+ With hat: python --- devel/py-zope.generations/files/patch-2to3 | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/devel/py-zope.generations/files/patch-2to3 b/devel/py-zope.generations/files/patch-2to3 new file mode 100644 index 000000000000..4c13011a0d1f --- /dev/null +++ b/devel/py-zope.generations/files/patch-2to3 @@ -0,0 +1,22 @@ +--- src/zope/generations/generations.py.orig 2011-12-22 19:48:30 UTC ++++ src/zope/generations/generations.py +@@ -19,8 +19,8 @@ import transaction + import zope.component + import zope.interface + +-from interfaces import GenerationTooHigh, GenerationTooLow, UnableToEvolve +-from interfaces import ISchemaManager, IInstallableSchemaManager ++from .interfaces import GenerationTooHigh, GenerationTooLow, UnableToEvolve ++from .interfaces import ISchemaManager, IInstallableSchemaManager + + + logger = logging.getLogger('zope.generations') +@@ -147,7 +147,7 @@ class SchemaManager(object): + + try: + evolver = __import__(name, {}, {}, ['*']) +- except ImportError, m: ++ except ImportError as m: + if str(m) not in ('No module named %s' % name, + 'No module named install'): + # This was an import error *within* the module, so we re-raise.