Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
a74cae20
Commit
a74cae20
authored
Dec 02, 2012
by
Stephen Fromm
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1715 from sfromm/issue1713
Further tweak how to find pip in virtualenv on centos/redhat/fedora
parents
1e7526ee
5b7c8fcc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
library/pip
+14
-4
No files found.
library/pip
View file @
a74cae20
...
@@ -153,10 +153,20 @@ def main():
...
@@ -153,10 +153,20 @@ def main():
out
+=
out_venv
out
+=
out_venv
err
+=
err_venv
err
+=
err_venv
pip
=
module
.
get_bin_path
(
'python-pip'
,
False
,
[
'
%
s/bin'
%
env
])
# On Debian and Ubuntu, pip is pip.
if
not
pip
:
# On Fedora18 and up, pip is python-pip.
pip
=
module
.
get_bin_path
(
'pip-python'
,
False
,
[
'
%
s/bin'
%
env
])
# On Fedora17 and below, CentOS and RedHat 6 and 5, pip is pip-python.
# On Fedora, CentOS, and RedHat, the exception is in the virtualenv.
# There, pip is just pip.
# Try pip with the virtualenv directory first.
pip
=
module
.
get_bin_path
(
'pip'
,
False
,
[
'
%
s/bin'
%
env
])
for
p
in
[
'python-pip'
,
'pip-python'
]:
if
not
pip
:
pip
=
module
.
get_bin_path
(
p
,
False
,
[
'
%
s/bin'
%
env
])
# pip should have been found by now. The final call to get_bin_path
# will trigger fail_json.
if
not
pip
:
if
not
pip
:
pip
=
module
.
get_bin_path
(
'pip'
,
True
,
[
'
%
s/bin'
%
env
])
pip
=
module
.
get_bin_path
(
'pip'
,
True
,
[
'
%
s/bin'
%
env
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment