git: 2f218ad4d3d6 - main - devel/py-absl: fix build with python 3.10+
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 28 Oct 2021 12:02:38 UTC
The branch main has been updated by amdmi3:
URL: https://cgit.FreeBSD.org/ports/commit/?id=2f218ad4d3d6be04278777412af0f18a5ad8e17b
commit 2f218ad4d3d6be04278777412af0f18a5ad8e17b
Author: Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2021-10-28 11:54:17 +0000
Commit: Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2021-10-28 11:54:17 +0000
devel/py-absl: fix build with python 3.10+
Remove useless python version check which breaks on two-digit minor
version of python. This check is a no-op on FreeBSD as we don't have
python <2.7 or >=3.0 <=3.4 anyway.
Approved by: portmgr blanket
---
devel/py-absl/files/patch-setup.py | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/devel/py-absl/files/patch-setup.py b/devel/py-absl/files/patch-setup.py
new file mode 100644
index 000000000000..75409fea1b21
--- /dev/null
+++ b/devel/py-absl/files/patch-setup.py
@@ -0,0 +1,13 @@
+--- setup.py.orig 2019-03-15 00:56:19.000000000 +0300
++++ setup.py 2021-10-28 14:41:48.002012000 +0300
+@@ -29,10 +29,6 @@
+ use_setuptools()
+ import setuptools
+
+-py_version = platform.python_version_tuple()
+-if py_version < ('2', '7') or py_version[0] == '3' and py_version < ('3', '4'):
+- raise RuntimeError('Python version 2.7 or 3.4+ is required.')
+-
+ INSTALL_REQUIRES = [
+ 'six',
+ ]