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
50666eac
Commit
50666eac
authored
Jun 04, 2013
by
y-p
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add is_local_path check to pip module, for skipping --use-mirrors
parent
9ebb7450
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
library/packaging/pip
+5
-1
No files found.
library/packaging/pip
View file @
50666eac
...
...
@@ -239,6 +239,7 @@ def main():
# is_tar ends with .zip, .tar.gz, or .tar.bz2
is_vcs
=
False
is_tar
=
False
is_local_path
=
False
if
name
.
endswith
(
'.tar.gz'
)
or
name
.
endswith
(
'.tar.bz2'
)
or
name
.
endswith
(
'.zip'
):
is_tar
=
True
elif
name
.
startswith
(
'svn+'
)
or
name
.
startswith
(
'git+'
)
or
\
...
...
@@ -253,8 +254,11 @@ def main():
args_list
.
append
(
'-e'
)
# Ok, we will reconstruct the option string
extra_args
=
' '
.
join
(
args_list
)
if
name
.
startswith
((
'.'
,
'/'
)):
is_local_path
=
True
# for tarball or vcs source, applying --use-mirrors doesn't really make sense
is_package
=
is_vcs
or
is_tar
# just a shortcut for bool
is_package
=
is_vcs
or
is_tar
or
is_local_path
# just a shortcut for bool
if
not
is_package
and
state
!=
'absent'
and
use_mirrors
:
cmd
+=
' --use-mirrors'
cmd
+=
'
%
s'
%
_get_full_name
(
name
,
version
)
...
...
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