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
import glob, os, sys, zipfile
import glob, os, sys, tarfile, zipfile
d = "download-cache/dist"
p = "setuptools-*"
x, = glob.glob(d + "/" + p)
zipfile.ZipFile(x).extractall()
if x.endswith(".zip"):
zipfile.ZipFile(x).extractall()
else:
tarfile.TarFile.open(x, "r:*").extractall()
sys.path[:0] = p = glob.glob(p)
from setuptools.command.easy_install import main
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!