From ae989b57977e0e4f4891f445684ad9583aeec7ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20Fernando=20S=C3=A1nchez?= Date: Fri, 13 Mar 2015 23:25:23 +0100 Subject: [PATCH] --- setup.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 setup.py diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..c107bc7 --- /dev/null +++ b/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]