rep1/python37/Lib/site-packages/pip/_internal/utils/setuptools_build.py

9 lines
278 B
Python
Raw Permalink Normal View History

2024-11-21 09:00:42 +08:00
# Shim to wrap setup.py invocation with setuptools
SETUPTOOLS_SHIM = (
"import setuptools, tokenize;__file__=%r;"
"f=getattr(tokenize, 'open', open)(__file__);"
"code=f.read().replace('\\r\\n', '\\n');"
"f.close();"
"exec(compile(code, __file__, 'exec'))"
)