2015-02-26 23:21:05 +01:00
|
|
|
from toolchain import Recipe, shprint
|
|
|
|
from os.path import join, exists
|
|
|
|
import sh
|
|
|
|
import os
|
|
|
|
import fnmatch
|
|
|
|
import shutil
|
|
|
|
|
|
|
|
|
|
|
|
class HostSetuptools(Recipe):
|
|
|
|
depends = ["hostpython"]
|
2016-02-14 14:49:25 +01:00
|
|
|
archs = ["x86_64"]
|
2016-10-14 10:31:18 +02:00
|
|
|
url = "setuptools"
|
2015-02-26 23:21:05 +01:00
|
|
|
|
|
|
|
def prebuild_arch(self, arch):
|
|
|
|
hostpython = sh.Command(self.ctx.hostpython)
|
|
|
|
sh.curl("-O", "https://bootstrap.pypa.io/ez_setup.py")
|
2016-10-14 10:31:18 +02:00
|
|
|
shprint(hostpython, "./ez_setup.py")
|
2015-02-26 23:21:05 +01:00
|
|
|
|
2016-02-14 14:49:25 +01:00
|
|
|
recipe = HostSetuptools()
|