Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
镜像
Python_Packaging_Authority
pip
提交
0e85279f
P
pip
项目概览
镜像
/
Python_Packaging_Authority
/
pip
12 个月 前同步成功
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
pip
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
0e85279f
编写于
9月 12, 2019
作者:
C
Chris Jerdonek
提交者:
GitHub
9月 12, 2019
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #7006 from chrahunt/refactor/refactor-1
Clean up arguments for RequirementCommand.make_requirement_preparer
上级
9a5ff1a2
81d8005b
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
7 addition
and
5 deletion
+7
-5
src/pip/_internal/cli/req_command.py
src/pip/_internal/cli/req_command.py
+4
-2
src/pip/_internal/commands/download.py
src/pip/_internal/commands/download.py
+1
-1
src/pip/_internal/commands/install.py
src/pip/_internal/commands/install.py
+1
-1
src/pip/_internal/commands/wheel.py
src/pip/_internal/commands/wheel.py
+1
-1
未找到文件。
src/pip/_internal/cli/req_command.py
浏览文件 @
0e85279f
...
@@ -141,7 +141,7 @@ class RequirementCommand(IndexGroupCommand):
...
@@ -141,7 +141,7 @@ class RequirementCommand(IndexGroupCommand):
@
staticmethod
@
staticmethod
def
make_requirement_preparer
(
def
make_requirement_preparer
(
temp_
directory
,
# type: TempDirectory
temp_
build_dir
,
# type: TempDirectory
options
,
# type: Values
options
,
# type: Values
req_tracker
,
# type: RequirementTracker
req_tracker
,
# type: RequirementTracker
download_dir
=
None
,
# type: str
download_dir
=
None
,
# type: str
...
@@ -151,8 +151,10 @@ class RequirementCommand(IndexGroupCommand):
...
@@ -151,8 +151,10 @@ class RequirementCommand(IndexGroupCommand):
"""
"""
Create a RequirementPreparer instance for the given parameters.
Create a RequirementPreparer instance for the given parameters.
"""
"""
temp_build_dir_path
=
temp_build_dir
.
path
assert
temp_build_dir_path
is
not
None
return
RequirementPreparer
(
return
RequirementPreparer
(
build_dir
=
temp_
directory
.
path
,
build_dir
=
temp_
build_dir_
path
,
src_dir
=
options
.
src_dir
,
src_dir
=
options
.
src_dir
,
download_dir
=
download_dir
,
download_dir
=
download_dir
,
wheel_download_dir
=
wheel_download_dir
,
wheel_download_dir
=
wheel_download_dir
,
...
...
src/pip/_internal/commands/download.py
浏览文件 @
0e85279f
...
@@ -125,7 +125,7 @@ class DownloadCommand(RequirementCommand):
...
@@ -125,7 +125,7 @@ class DownloadCommand(RequirementCommand):
)
)
preparer
=
self
.
make_requirement_preparer
(
preparer
=
self
.
make_requirement_preparer
(
temp_
directory
=
directory
,
temp_
build_dir
=
directory
,
options
=
options
,
options
=
options
,
req_tracker
=
req_tracker
,
req_tracker
=
req_tracker
,
download_dir
=
options
.
download_dir
,
download_dir
=
options
.
download_dir
,
...
...
src/pip/_internal/commands/install.py
浏览文件 @
0e85279f
...
@@ -358,7 +358,7 @@ class InstallCommand(RequirementCommand):
...
@@ -358,7 +358,7 @@ class InstallCommand(RequirementCommand):
wheel_cache
wheel_cache
)
)
preparer
=
self
.
make_requirement_preparer
(
preparer
=
self
.
make_requirement_preparer
(
temp_
directory
=
directory
,
temp_
build_dir
=
directory
,
options
=
options
,
options
=
options
,
req_tracker
=
req_tracker
,
req_tracker
=
req_tracker
,
)
)
...
...
src/pip/_internal/commands/wheel.py
浏览文件 @
0e85279f
...
@@ -136,7 +136,7 @@ class WheelCommand(RequirementCommand):
...
@@ -136,7 +136,7 @@ class WheelCommand(RequirementCommand):
)
)
preparer
=
self
.
make_requirement_preparer
(
preparer
=
self
.
make_requirement_preparer
(
temp_
directory
=
directory
,
temp_
build_dir
=
directory
,
options
=
options
,
options
=
options
,
req_tracker
=
req_tracker
,
req_tracker
=
req_tracker
,
wheel_download_dir
=
options
.
wheel_dir
,
wheel_download_dir
=
options
.
wheel_dir
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录