summaryrefslogtreecommitdiff
path: root/lib/python2.7/site-packages/pip/utils/setuptools_build.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python2.7/site-packages/pip/utils/setuptools_build.py')
-rw-r--r--lib/python2.7/site-packages/pip/utils/setuptools_build.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/python2.7/site-packages/pip/utils/setuptools_build.py b/lib/python2.7/site-packages/pip/utils/setuptools_build.py
new file mode 100644
index 0000000..03973e9
--- /dev/null
+++ b/lib/python2.7/site-packages/pip/utils/setuptools_build.py
@@ -0,0 +1,8 @@
+# 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'))"
+)