Skip to content

Instantly share code, notes, and snippets.

@plathrop
Created April 25, 2014 17:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plathrop/11297483 to your computer and use it in GitHub Desktop.
Save plathrop/11297483 to your computer and use it in GitHub Desktop.
from setuptools import setup, find_packages
from pip.req import parse_requirements
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
REQUIREMENTS = os.path.join(BASE_DIR, 'requirements.pip')
DEPENDENCIES = [unicode(package.req)
for package in parse_requirements(REQUIREMENTS)]
setup(
install_requires = DEPENDENCIES,
# ...
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment