Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/pip module py2.4 #830

Merged
merged 2 commits into from
Aug 10, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 9 additions & 2 deletions library/pip
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ ENV = None


def _get_full_name(name, version=None):
return name if version is None else name + '==' + version
if version is None:
resp = name
else:
resp = name + '==' + version
return resp


def _find_pip():
Expand Down Expand Up @@ -171,7 +175,10 @@ def main():
(not installed and state == 'present'))

if changed:
full_name = _get_full_name(name, version) if state == 'present' else name
if state == 'present':
full_name = _get_full_name(name, version)
else:
full_name = name

cmd = '%s %s %s' % (PIP, command_map[state], full_name)

Expand Down