File tree 3 files changed +9
-19
lines changed
src/pip/_internal/operations/install
3 files changed +9
-19
lines changed Original file line number Diff line number Diff line change
1
+ Deprecate setup.py-based builds that do not generate an ``.egg-info`` directory.
Original file line number Diff line number Diff line change
1
+ Deprecate setup.py-based builds that do not generate an ``.egg-info`` directory.
Original file line number Diff line number Diff line change 6
6
import sys
7
7
from distutils .util import change_root
8
8
9
- from pip ._internal .utils . deprecation import deprecated
9
+ from pip ._internal .exceptions import InstallationError
10
10
from pip ._internal .utils .logging import indent_log
11
11
from pip ._internal .utils .misc import ensure_dir
12
12
from pip ._internal .utils .setuptools_build import make_setuptools_install_args
@@ -106,24 +106,12 @@ def prepend_root(path):
106
106
egg_info_dir = prepend_root (directory )
107
107
break
108
108
else :
109
- deprecated (
110
- reason = (
111
- "{} did not indicate that it installed an "
112
- ".egg-info directory. Only setup.py projects "
113
- "generating .egg-info directories are supported."
114
- ).format (req_description ),
115
- replacement = (
116
- "for maintainers: updating the setup.py of {0}. "
117
- "For users: contact the maintainers of {0} to let "
118
- "them know to update their setup.py." .format (
119
- req_name
120
- )
121
- ),
122
- gone_in = "20.2" ,
123
- issue = 6998 ,
124
- )
125
- # FIXME: put the record somewhere
126
- return True
109
+ message = (
110
+ "{} did not indicate that it installed an "
111
+ ".egg-info directory. Only setup.py projects "
112
+ "generating .egg-info directories are supported."
113
+ ).format (req_description )
114
+ raise InstallationError (message )
127
115
128
116
new_lines = []
129
117
for line in record_lines :
You can’t perform that action at this time.
0 commit comments