diff options
author | Julien Pagès <j.parkouss@gmail.com> | 2014-05-29 04:42:19 +0200 |
---|---|---|
committer | Julien Pagès <j.parkouss@gmail.com> | 2014-05-29 04:42:19 +0200 |
commit | 229cbf23ae738bdd27fa829c54b022880a6b99d7 (patch) | |
tree | 894d73021aaa156a9a9d881eacefdb1caac670b0 /setup.py | |
parent | d74bde7590792699b44c36c5d536f03ea808c220 (diff) |
add working Xlib dependency for python3
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -2,6 +2,14 @@ try: from setuptools import setup except ImportError: from distutils.core import setup +import sys + +if sys.version > '3': + install_requires = ['python3-xlib'] +else: + # I can not specify Xlib as a dependency now as there is no + # release for python2 on PyPi + install_requires = [] setup(name='ewmh', version='0.1', @@ -11,6 +19,6 @@ setup(name='ewmh', author_email="j.parkouss@gmail.com", url='https://github.com/parkouss/pyewmh', py_modules=['ewmh'], - install_requires=['Xlib'], + install_requires=install_requires, license='LICENSE.txt', ) |