File tree 2 files changed +14
-0
lines changed
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change
1
+ If the user's pip.conf includes a target directory setting,
2
+ attempting to install a package in editable mode or from source
3
+ results in a fatal error during the installation of setuptools.
4
+
5
+ The following assertion triggers:
6
+ assert not (home and prefix), "home={} prefix={}".format(home, prefix)
7
+
8
+ To avoid this issue when building a package, the target
9
+ setting should be ignored. This can be achieved by passing an empty
10
+ target when installing dependencies in the BuildEnvironment class.
Original file line number Diff line number Diff line change @@ -242,6 +242,10 @@ def _install_requirements(
242
242
prefix .path ,
243
243
"--no-warn-script-location" ,
244
244
"--disable-pip-version-check" ,
245
+ # The prefix specified two lines above, thus
246
+ # target from config file or env var should be ignored
247
+ "--target" ,
248
+ "" ,
245
249
]
246
250
if logger .getEffectiveLevel () <= logging .DEBUG :
247
251
args .append ("-vv" )
You can’t perform that action at this time.
0 commit comments