Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
镜像
Python_Packaging_Authority
pip
提交
1ad0495f
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,发现更多精彩内容 >>
未验证
提交
1ad0495f
编写于
9月 30, 2019
作者:
P
Pradyun Gedam
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Rename {run -> runner}_with_spinner_message
上级
65621002
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
8 addition
and
8 deletion
+8
-8
src/pip/_internal/distributions/source/legacy.py
src/pip/_internal/distributions/source/legacy.py
+2
-2
src/pip/_internal/req/req_install.py
src/pip/_internal/req/req_install.py
+3
-3
src/pip/_internal/utils/subprocess.py
src/pip/_internal/utils/subprocess.py
+1
-1
src/pip/_internal/wheel.py
src/pip/_internal/wheel.py
+2
-2
未找到文件。
src/pip/_internal/distributions/source/legacy.py
浏览文件 @
1ad0495f
...
...
@@ -6,7 +6,7 @@ import logging
from
pip._internal.build_env
import
BuildEnvironment
from
pip._internal.distributions.base
import
AbstractDistribution
from
pip._internal.exceptions
import
InstallationError
from
pip._internal.utils.subprocess
import
run_with_spinner_message
from
pip._internal.utils.subprocess
import
run
ner
_with_spinner_message
logger
=
logging
.
getLogger
(
__name__
)
...
...
@@ -82,7 +82,7 @@ class SourceDistribution(AbstractDistribution):
# This must be done in a second pass, as the pyproject.toml
# dependencies must be installed before we can call the backend.
with
self
.
req
.
build_env
:
runner
=
run_with_spinner_message
(
runner
=
run
ner
_with_spinner_message
(
"Getting requirements to build wheel"
)
backend
=
self
.
req
.
pep517_backend
...
...
src/pip/_internal/req/req_install.py
浏览文件 @
1ad0495f
...
...
@@ -51,7 +51,7 @@ from pip._internal.utils.packaging import get_metadata
from
pip._internal.utils.setuptools_build
import
make_setuptools_shim_args
from
pip._internal.utils.subprocess
import
(
call_subprocess
,
run_with_spinner_message
,
run
ner
_with_spinner_message
,
)
from
pip._internal.utils.temp_dir
import
TempDirectory
from
pip._internal.utils.typing
import
MYPY_CHECK_RUNNING
...
...
@@ -604,7 +604,7 @@ class InstallRequirement(object):
# Note that Pep517HookCaller implements a fallback for
# prepare_metadata_for_build_wheel, so we don't have to
# consider the possibility that this hook doesn't exist.
runner
=
run_with_spinner_message
(
"Preparing wheel metadata"
)
runner
=
run
ner
_with_spinner_message
(
"Preparing wheel metadata"
)
backend
=
self
.
pep517_backend
with
backend
.
subprocess_runner
(
runner
):
distinfo_dir
=
backend
.
prepare_metadata_for_build_wheel
(
...
...
@@ -935,7 +935,7 @@ class InstallRequirement(object):
global_options
,
record_filename
,
root
,
prefix
,
pycompile
,
)
runner
=
run_with_spinner_message
(
runner
=
run
ner
_with_spinner_message
(
"Running setup.py install for {}"
.
format
(
self
.
name
)
)
with
indent_log
(),
self
.
build_env
:
...
...
src/pip/_internal/utils/subprocess.py
浏览文件 @
1ad0495f
...
...
@@ -250,7 +250,7 @@ def call_subprocess(
return
''
.
join
(
all_output
)
def
run_with_spinner_message
(
message
):
def
run
ner
_with_spinner_message
(
message
):
# type: (str) -> Callable
"""Provide a subprocess_runner that shows a spinner message.
...
...
src/pip/_internal/wheel.py
浏览文件 @
1ad0495f
...
...
@@ -44,7 +44,7 @@ from pip._internal.utils.subprocess import (
LOG_DIVIDER
,
call_subprocess
,
format_command_args
,
run_with_spinner_message
,
run
ner
_with_spinner_message
,
)
from
pip._internal.utils.temp_dir
import
TempDirectory
from
pip._internal.utils.typing
import
MYPY_CHECK_RUNNING
...
...
@@ -982,7 +982,7 @@ class WheelBuilder(object):
try
:
logger
.
debug
(
'Destination directory: %s'
,
tempd
)
runner
=
run_with_spinner_message
(
runner
=
run
ner
_with_spinner_message
(
'Building wheel for {} (PEP 517)'
.
format
(
req
.
name
)
)
backend
=
req
.
pep517_backend
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录