summaryrefslogtreecommitdiff
path: root/pkg/utils.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2015-07-22 10:31:59 -0400
committerKali Kaneko <kali@leap.se>2015-07-22 12:28:27 -0400
commit9c79c40930b3f1a031ab3b157ce702eecedad8af (patch)
tree1dff281d9c43841b3328f21ca971a12a3a30555b /pkg/utils.py
parent3c229540510fd9af27b6a4c473ebc68a1ee468c5 (diff)
[pkg] separate leap requirements
this is part of a process to make the setup of the development mode less troublesome. from now on, setting up a virtualenv in pure development mode will be as easy as telling pip to just install the external dependencies:: pip install -r pkg/requirements.pip and traversing all the leap repos for the needed leap dependencies doing:: python setup.py develop - Related: #7288
Diffstat (limited to 'pkg/utils.py')
-rw-r--r--pkg/utils.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/pkg/utils.py b/pkg/utils.py
index deace14..dd3deac 100644
--- a/pkg/utils.py
+++ b/pkg/utils.py
@@ -27,7 +27,7 @@ import sys
def get_reqs_from_files(reqfiles):
"""
Returns the contents of the top requirement file listed as a
- string list with the lines
+ string list with the lines.
@param reqfiles: requirement files to parse
@type reqfiles: list of str
@@ -43,6 +43,9 @@ def parse_requirements(reqfiles=['requirements.txt',
"""
Parses the requirement files provided.
+ The passed reqfiles list is a list of possible locations to try, the
+ function will return the contents of the first path found.
+
Checks the value of LEAP_VENV_SKIP_PYSIDE to see if it should
return PySide as a dep or not. Don't set, or set to 0 if you want
to install it through pip.
@@ -58,9 +61,9 @@ def parse_requirements(reqfiles=['requirements.txt',
if re.match(r'\s*-e\s+', line):
pass
# do not try to do anything with externals on vcs
- #requirements.append(re.sub(r'\s*-e\s+.*#egg=(.*)$', r'\1',
- #line))
- # http://foo.bar/baz/foobar/zipball/master#egg=foobar
+ # requirements.append(re.sub(r'\s*-e\s+.*#egg=(.*)$', r'\1',
+ # line))
+ # http://foo.bar/baz/foobar/zipball/master#egg=foobar
elif re.match(r'\s*https?:', line):
requirements.append(re.sub(r'\s*https?:.*#egg=(.*)$', r'\1',
line))