File tree 2 files changed +12
-5
lines changed
2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 5
5
import os
6
6
7
7
from pip ._internal .build_env import BuildEnvironment
8
+ from pip ._internal .cli .spinners import open_spinner
8
9
from pip ._internal .exceptions import InstallationError
9
10
from pip ._internal .utils .setuptools_build import make_setuptools_egg_info_args
10
11
from pip ._internal .utils .subprocess import call_subprocess
@@ -54,11 +55,13 @@ def generate_metadata(
54
55
)
55
56
56
57
with build_env :
57
- call_subprocess (
58
- args ,
59
- cwd = source_dir ,
60
- command_desc = "python setup.py egg_info" ,
61
- )
58
+ with open_spinner ("Preparing metadata (setup.py)" ) as spinner :
59
+ call_subprocess (
60
+ args ,
61
+ cwd = source_dir ,
62
+ command_desc = "python setup.py egg_info" ,
63
+ spinner = spinner ,
64
+ )
62
65
63
66
# Return the .egg-info directory.
64
67
return _find_egg_info (egg_info_dir )
Original file line number Diff line number Diff line change @@ -528,6 +528,10 @@ def _generate_editable_metadata(self) -> str:
528
528
# At this point we have determined that the build_editable hook
529
529
# is missing, and there is a setup.py or setup.cfg
530
530
# so we fallback to the legacy metadata generation
531
+ logger .info (
532
+ "Build backend does not support editables, "
533
+ "falling back to setup.py egg_info."
534
+ )
531
535
else :
532
536
self .supports_pyproject_editable = True
533
537
return metadata_directory
You can’t perform that action at this time.
0 commit comments