Skip to content

Instantly share code, notes, and snippets.

@hltbra
Last active December 14, 2015 07:09
Show Gist options
  • Select an option

  • Save hltbra/5048743 to your computer and use it in GitHub Desktop.

Select an option

Save hltbra/5048743 to your computer and use it in GitHub Desktop.
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