ports/devel/py-absl/files/patch-setup.py
Dmitry Marakasov 2f218ad4d3 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
2021-10-28 14:54:17 +03:00

13 lines
396 B
Python

--- 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',
]