Skip to content

Commit

Permalink
Make importlib dependency conditional on the Python version.
Browse files Browse the repository at this point in the history
  • Loading branch information
nvie committed Mar 22, 2012
1 parent 6bc173f commit a662180
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,13 @@ def get_version():
raise RuntimeError('No version info found.')

def get_dependencies():
deps = ['redis', 'procname', 'importlib', 'times']
deps = ['redis', 'procname', 'times']
deps += ['logbook'] # should be soft dependency?
if sys.version_info < (2, 7) or \
sys.version_info >= (3, 0) and sys.version_info < (3, 2):
(sys.version_info >= (3, 0) and sys.version_info < (3, 1)):
deps += ['importlib']
if sys.version_info < (2, 7) or \
(sys.version_info >= (3, 0) and sys.version_info < (3, 2)):
deps += ['argparse']
return deps

Expand Down

0 comments on commit a662180

Please sign in to comment.