Open
Description
What's the problem this feature will solve?
This performance improvement was discussed in upstream distlib here, but was rejected: pypa/distlib#239. Performance measurements can be found in that discussion.
Describe the solution you'd like
Override distlib.scripts.ScriptMaker.script_template
with a template that doesn't import re
.
Alternative Solutions
Keep current state.
Additional context
Previous discussions:
- https://discuss.python.org/t/make-more-of-the-standard-library-import-on-demand/76311
- Remove
import re
from script template distlib#239
Code of Conduct
- I agree to follow the PSF Code of Conduct.