Skip to content

Commit

Permalink
Merge pull request #74 from ritwickdsouza/cond-depend-wheel
Browse files Browse the repository at this point in the history
[packaging] Added conditional dependencies for wheel
  • Loading branch information
nemesifier committed May 25, 2017
2 parents e7513af + ce4d39b commit 63673b4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions setup.py
Expand Up @@ -23,6 +23,12 @@
print(" git push --tags")
sys.exit()

# bdist_wheel
extras_require = {
# http://wheel.readthedocs.io/en/latest/#defining-conditional-dependencies
':python_version in "2.6 2.7"' : ['py2-ipaddress']
}


def get_install_requires():
"""
Expand Down Expand Up @@ -68,6 +74,7 @@ def get_install_requires():
'Topic :: System :: Networking',
],
install_requires=get_install_requires(),
extras_require=extras_require,
test_suite='nose.collector',
scripts=['bin/netjsonconfig'],
)

0 comments on commit 63673b4

Please sign in to comment.