]> git.pld-linux.org Git - packages/python3-absl.git/blame - no-version.patch
- remove broken version checks, rel 5
[packages/python3-absl.git] / no-version.patch
CommitLineData
eaaa0058
JR
1--- absl-py-0.9.0/setup.py~ 2019-12-17 23:46:45.000000000 +0100
2+++ absl-py-0.9.0/setup.py 2022-04-09 10:21:04.611211528 +0200
3@@ -29,34 +29,10 @@
4 use_setuptools()
5 import setuptools
6
7-py_version = platform.python_version_tuple()
8-if py_version < ('2', '7') or py_version[0] == '3' and py_version < ('3', '4'):
9- raise RuntimeError('Python version 2.7 or 3.4+ is required.')
10-
11 INSTALL_REQUIRES = [
12 'six',
13 ]
14
15-setuptools_version = tuple(
16- int(x) for x in setuptools.__version__.split('.')[:2])
17-
18-# A variety of environments have very, very old versions of setuptools that
19-# don't support the environment markers ("foo; python_version < X"). Since
20-# we're using sdist, this setup.py gets run directly when installing, so
21-# we can just manually do the dependency checking.
22-# See these for more info:
23-# https://github.com/abseil/abseil-py/issues/79
24-# https://hynek.me/articles/conditional-python-dependencies/
25-# Environment marker support was added in setuptools 36.2, see
26-# https://github.com/pypa/setuptools/blob/master/CHANGES.rst#v3620
27-if setuptools_version < (36, 2):
28- if sys.version_info[0:2] < (3, 4):
29- INSTALL_REQUIRES.append('enum34')
30-else:
31- # Environment markers are the preferred way: it allows correct non-source
32- # distributions (i.e., wheels) to be generated.
33- INSTALL_REQUIRES.append("enum34; python_version < '3.4'")
34-
35 _README_PATH = os.path.join(
36 os.path.dirname(os.path.realpath(__file__)), 'README.md')
37 with open(_README_PATH, 'rb') as fp:
This page took 0.288955 seconds and 4 git commands to generate.