Last active
December 14, 2015 07:09
-
-
Save hltbra/5048743 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| from setuptools import setup | |
| deps = [] | |
| if sys.version_info >= (3,): | |
| deps.append('DEPENDENCY_A') | |
| else: | |
| deps.append('DEPENDENCY_B') | |
| setup( | |
| name='foobar', | |
| version='0.0.1', | |
| install_requires=deps) | |
| # running | |
| # assume there is a foobar/ with this setup.py | |
| # pip-2.7 install --no-install . -vvvvvv | |
| # pip-3.2 install --no-install . -vvvvvv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment