Blame remove-environment-markers.patch
|
|
ce502d4 |
Generate requirements list dynamically instead of using environment markers.
|
|
|
ce502d4 |
This allows using versions of setuptools older than 20.6.8.
|
|
|
ce502d4 |
|
|
|
0bc3e37 |
diff -Nurp pdir2-0.3.0.orig/setup.py pdir2-0.3.0/setup.py
|
|
|
0bc3e37 |
--- pdir2-0.3.0.orig/setup.py 2018-02-10 00:03:21.000000000 -0600
|
|
|
0bc3e37 |
+++ pdir2-0.3.0/setup.py 2018-02-28 08:02:50.982899303 -0600
|
|
|
0bc3e37 |
@@ -1,7 +1,15 @@
|
|
|
ce502d4 |
import codecs
|
|
|
ce502d4 |
+import sys
|
|
|
ce502d4 |
+import platform
|
|
|
ce502d4 |
|
|
|
0bc3e37 |
from setuptools import setup
|
|
|
ce502d4 |
|
|
|
ce502d4 |
+requirements = []
|
|
|
ce502d4 |
+if platform.system == 'Windows':
|
|
|
ce502d4 |
+ requirements.append('colorama')
|
|
|
ce502d4 |
+if sys.version_info[:2] < (3, 4):
|
|
|
ce502d4 |
+ requirements.append('enum34')
|
|
|
ce502d4 |
+
|
|
|
0bc3e37 |
readme = codecs.open('docs/README.rst', encoding='utf-8').read()
|
|
|
0bc3e37 |
history = codecs.open('docs/HISTORY.rst', encoding='utf-8').read()
|
|
|
0bc3e37 |
|
|
|
0bc3e37 |
@@ -17,13 +25,9 @@ setup(
|
|
|
ce502d4 |
'pdir',
|
|
|
ce502d4 |
],
|
|
|
ce502d4 |
setup_requires=[
|
|
|
ce502d4 |
- # minimum version to use environment markers
|
|
|
ce502d4 |
- 'setuptools>=20.6.8',
|
|
|
ce502d4 |
- ],
|
|
|
ce502d4 |
- install_requires=[
|
|
|
ce502d4 |
- 'colorama;platform_system=="Windows"',
|
|
|
ce502d4 |
- 'enum34;python_version<"3.4"',
|
|
|
ce502d4 |
+ 'setuptools',
|
|
|
ce502d4 |
],
|
|
|
ce502d4 |
+ install_requires=requirements,
|
|
|
ce502d4 |
include_package_data=True,
|
|
|
ce502d4 |
license='MIT License',
|
|
|
ce502d4 |
classifiers=[
|