summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Crosley <timothy.crosley@gmail.com>2015-05-07 03:34:16 -0400
committerTimothy Crosley <timothy.crosley@gmail.com>2015-05-07 03:34:16 -0400
commit221372595732f9645bfa58ef704c7ccc3c027631 (patch)
tree2fea5a0bd10946f349d715da219a6063d4760075
parent8d1b9d81552f834ca0af3ffa78764d096c9af184 (diff)
downloadpies-221372595732f9645bfa58ef704c7ccc3c027631.tar.gz
Add environment markers, suggestion from @dstufft
-rw-r--r--pies2overrides/setup.py1
-rw-r--r--setup.py5
2 files changed, 6 insertions, 0 deletions
diff --git a/pies2overrides/setup.py b/pies2overrides/setup.py
index 5f0a67b..beb8006 100644
--- a/pies2overrides/setup.py
+++ b/pies2overrides/setup.py
@@ -23,5 +23,6 @@ setup(name='pies2overrides',
license="MIT",
install_requires=install_requires,
requires=install_requires,
+ extras_require={':python_version=="2.6"': ['ordereddict', 'argparse']},
py_modules=['configparser', 'builtins', '_thread', 'copyreg', 'queue', 'reprlib', 'socketserver'],
packages=['html', 'http', 'xmlrpc'])
diff --git a/setup.py b/setup.py
index 19ce028..0f683cf 100644
--- a/setup.py
+++ b/setup.py
@@ -33,6 +33,11 @@ setup(name='pies',
download_url='https://github.com/timothycrosley/pies/blob/master/dist/pies-2.6.3.tar.gz?raw=true',
license="MIT",
install_requires=install_requires,
+ extras_require={':python_version=="2.6" or python_version=="2.7"': ['pies2overrides', 'enum34'],
+ ':python_version=="3.0" or python_version=="3.1" or '
+ 'python_version=="3.2" or python_version=="3.3"': ['enum34'],
+ ':python_version=="3.0" or python_version=="3.1" or python_version=="3.2"':
+ ['argparse', 'configparser']}
requires=install_requires,
packages=['pies'],
keywords='Python, Python2, Python3, six, future, refactoring, single-code-base',