Commit bad07d05 by Julien Muchembled

re6st-node: add support for setuptools when it's downloaded as tar.gz

1 parent aca01b62
Pipeline #2289 for bad07d05 skipped in 0 seconds
#!/usr/bin/python2 -S #!/usr/bin/python2 -S
import glob, os, sys, zipfile import glob, os, sys, tarfile, zipfile
d = "download-cache/dist" d = "download-cache/dist"
p = "setuptools-*" p = "setuptools-*"
x, = glob.glob(d + "/" + p) x, = glob.glob(d + "/" + p)
zipfile.ZipFile(x).extractall() if x.endswith(".zip"):
else:, "r:*").extractall()
sys.path[:0] = p = glob.glob(p) sys.path[:0] = p = glob.glob(p)
from setuptools.command.easy_install import main from setuptools.command.easy_install import main
for x in "bin", "eggs": for x in "bin", "eggs":
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!