diff --git a/requirements.txt b/requirements.txt index 10f88fa1..c1fa4fc4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,6 @@ wcwidth>=0.1.4 six>=1.9.0 +# support python2.6 by using backport of 'orderedict' +ordereddict==1.1; python_version < "2.7" +# Windows requires jinxed +jinxed>=0.5.4; platform_system == "Windows" \ No newline at end of file diff --git a/setup.py b/setup.py index 60b06a65..b76c20a7 100755 --- a/setup.py +++ b/setup.py @@ -1,23 +1,13 @@ #!/usr/bin/env python """Distutils setup script.""" import os -import platform import setuptools def _get_install_requires(fname): - import sys result = [req_line.strip() for req_line in open(fname) if req_line.strip() and not req_line.startswith('#')] - # support python2.6 by using backport of 'orderedict' - if sys.version_info < (2, 7): - result.append('ordereddict==1.1') - - # Windows requires jinxed - if platform.system() == 'Windows': - result.append('jinxed>=0.5.4') - return result