diff --git a/repos/b8154c52bde270d34718/setup.py b/repos/b8154c52bde270d34718/setup.py new file mode 100644 index 0000000..c107bc7 --- /dev/null +++ b/repos/b8154c52bde270d34718/setup.py @@ -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]