mirror of
https://github.com/balkian/gists.git
synced 2024-11-24 10:22:28 +00:00
Add 'repos/b8154c52bde270d34718/' from commit 'ae989b57977e0e4f4891f445684ad9583aeec7ce'
git-subtree-dir: repos/b8154c52bde270d34718 git-subtree-mainline:59e5d08d0a
git-subtree-split:ae989b5797
This commit is contained in:
commit
ca0690b024
8
repos/b8154c52bde270d34718/setup.py
Normal file
8
repos/b8154c52bde270d34718/setup.py
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
from pip.req import parse_requirements
|
||||||
|
|
||||||
|
# parse_requirements() returns generator of pip.req.InstallRequirement objects
|
||||||
|
install_reqs = parse_requirements("requirements.txt")
|
||||||
|
|
||||||
|
# reqs is a list of requirement
|
||||||
|
# e.g. ['django==1.5.1', 'mezzanine==1.4.6']
|
||||||
|
reqs = [str(ir.req) for ir in install_reqs]
|
Loading…
Reference in New Issue
Block a user