Skip to content

Commit 01199b0

Browse files
committed
Normalize style
1 parent b3f2599 commit 01199b0

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

src/pip/_internal/utils/setuptools_build.py

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121

2222

2323
def make_setuptools_shim_args(
24-
setup_py_path, # type: str
25-
global_options=None, # type: Sequence[str]
26-
no_user_config=False, # type: bool
27-
unbuffered_output=False # type: bool
24+
setup_py_path, # type: str
25+
global_options=None, # type: Sequence[str]
26+
no_user_config=False, # type: bool
27+
unbuffered_output=False # type: bool
2828
):
2929
# type: (...) -> List[str]
3030
"""
@@ -38,12 +38,12 @@ def make_setuptools_shim_args(
3838
"""
3939
args = [sys.executable]
4040
if unbuffered_output:
41-
args.append('-u')
42-
args.extend(['-c', _SETUPTOOLS_SHIM.format(setup_py_path)])
41+
args += ["-u"]
42+
args += ["-c", _SETUPTOOLS_SHIM.format(setup_py_path)]
4343
if global_options:
44-
args.extend(global_options)
44+
args += global_options
4545
if no_user_config:
46-
args.append('--no-user-cfg')
46+
args += ["--no-user-cfg"]
4747
return args
4848

4949

@@ -61,12 +61,12 @@ def make_setuptools_develop_args(
6161
no_user_config=no_user_config,
6262
)
6363

64-
args.extend(["develop", "--no-deps"])
64+
args += ["develop", "--no-deps"]
6565

66-
args.extend(install_options)
66+
args += install_options
6767

6868
if prefix:
69-
args.extend(["--prefix", prefix])
69+
args += ["--prefix", prefix]
7070

7171
return args
7272

@@ -77,15 +77,15 @@ def make_setuptools_egg_info_args(
7777
no_user_config, # type: bool
7878
):
7979
# type: (...) -> List[str]
80-
base_cmd = make_setuptools_shim_args(setup_py_path)
80+
args = make_setuptools_shim_args(setup_py_path)
8181
if no_user_config:
82-
base_cmd += ["--no-user-cfg"]
82+
args += ["--no-user-cfg"]
8383

84-
base_cmd += ["egg_info"]
84+
args += ["egg_info"]
8585

86-
base_cmd += ['--egg-base', egg_info_dir]
86+
args += ["--egg-base", egg_info_dir]
8787

88-
return base_cmd
88+
return args
8989

9090

9191
def make_setuptools_install_args(
@@ -100,28 +100,28 @@ def make_setuptools_install_args(
100100
pycompile # type: bool
101101
):
102102
# type: (...) -> List[str]
103-
install_args = make_setuptools_shim_args(
103+
args = make_setuptools_shim_args(
104104
setup_py_path,
105105
global_options=global_options,
106106
no_user_config=no_user_config,
107107
unbuffered_output=True
108108
)
109-
install_args += ['install', '--record', record_filename]
110-
install_args += ['--single-version-externally-managed']
109+
args += ["install", "--record", record_filename]
110+
args += ["--single-version-externally-managed"]
111111

112112
if root is not None:
113-
install_args += ['--root', root]
113+
args += ["--root", root]
114114
if prefix is not None:
115-
install_args += ['--prefix', prefix]
115+
args += ["--prefix", prefix]
116116

117117
if pycompile:
118-
install_args += ["--compile"]
118+
args += ["--compile"]
119119
else:
120-
install_args += ["--no-compile"]
120+
args += ["--no-compile"]
121121

122122
if header_dir:
123-
install_args += ['--install-headers', header_dir]
123+
args += ["--install-headers", header_dir]
124124

125-
install_args += install_options
125+
args += install_options
126126

127-
return install_args
127+
return args

0 commit comments

Comments
 (0)