Skip to content

Commit

Permalink
Fix version-dependent dependencies
Browse files Browse the repository at this point in the history
Does anyone even use 3.0 or 3.1? If they do, this dependency check is
broken, the first if/elif/else block is solely for checking the event
loop requirements, make the importlib a separate check.

Looking at this, it would be nice if we could make the 3.3 check for
either trollius or asyncio, rather than enforcing asyncio, but I'm not
sure we can get setuptools to do that.
  • Loading branch information
flacjacket committed Jun 5, 2015
1 parent fb4b62a commit f35836a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions setup.py
Expand Up @@ -74,11 +74,12 @@
pass
elif sys.version_info >= (3, 3):
dependencies.append('asyncio')
elif (3, 0) <= sys.version_info <= (3, 1):
dependencies.append('importlib')
else:
dependencies.append('trollius')

if (3, 0) <= sys.version_info <= (3, 1):
dependencies.append('importlib')

setup(
name="qtile",
version="0.9.1",
Expand Down

0 comments on commit f35836a

Please sign in to comment.