diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2021-10-28 11:54:17 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2021-10-28 11:54:17 +0000 |
commit | 2f218ad4d3d6be04278777412af0f18a5ad8e17b (patch) | |
tree | e2dd685ce27717b1e183fa7b890d09121f03bd12 | |
parent | cc2a2a756a4e8c1883931c073641da81ad9b57b0 (diff) | |
download | ports-2f218ad4d3d6be04278777412af0f18a5ad8e17b.tar.gz ports-2f218ad4d3d6be04278777412af0f18a5ad8e17b.zip |
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
-rw-r--r-- | devel/py-absl/files/patch-setup.py | 13 |
1 files changed, 13 insertions, 0 deletions
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', + ] |