@@ -165,32 +165,32 @@ def _bootstrap(*, root=None, upgrade=False, user=False,
165
165
if verbosity :
166
166
args += ["-" + "v" * verbosity ]
167
167
168
- if user :
169
- # --user is mutually exclusive with --root/--prefix,
170
- # pip will enforce this.
171
- args += ["--user" ]
172
- else :
173
- # Handle installation paths.
174
- # If --root is given but not --prefix, we default to a prefix of "/"
175
- # so that the install happens at the root of the --root directory.
176
- # Otherwise, pip would use the configured sys.prefix, e.g.
177
- # /usr/local, and install into ${root}/usr/local/.
178
- effective_prefix = prefix
179
- if root and not prefix :
180
- effective_prefix = "/"
181
-
182
- if root :
183
- args += ["--root" , root ]
184
-
185
- if effective_prefix :
186
- args += ["--prefix" , effective_prefix ]
187
-
188
- # Force the script shebang to point to the correct, final
189
- # executable path. This is necessary when --root is used.
190
- executable_path = (
191
- Path (effective_prefix ) / "bin" / Path (sys .executable ).name
192
- )
193
- args += ["--executable" , os .fsdecode (executable_path )]
168
+ if user :
169
+ # --user is mutually exclusive with --root/--prefix,
170
+ # pip will enforce this.
171
+ args += ["--user" ]
172
+ else :
173
+ # Handle installation paths.
174
+ # If --root is given but not --prefix, we default to a prefix of "/"
175
+ # so that the install happens at the root of the --root directory.
176
+ # Otherwise, pip would use the configured sys.prefix, e.g.
177
+ # /usr/local, and install into ${root}/usr/local/.
178
+ effective_prefix = prefix
179
+ if root and not prefix :
180
+ effective_prefix = "/"
181
+
182
+ if root :
183
+ args += ["--root" , root ]
184
+
185
+ if effective_prefix :
186
+ args += ["--prefix" , effective_prefix ]
187
+
188
+ # Force the script shebang to point to the correct, final
189
+ # executable path. This is necessary when --root is used.
190
+ executable_path = (
191
+ Path (effective_prefix ) / "bin" / Path (sys .executable ).name
192
+ )
193
+ args += ["--executable" , os .fsdecode (executable_path )]
194
194
195
195
return _run_pip ([* args , "pip" ], [os .fsdecode (tmp_wheel_path )])
196
196
0 commit comments