Commit bad07d05 authored by Julien Muchembled's avatar Julien Muchembled

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

parent aca01b62
Pipeline #2289 skipped
#!/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":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment