21 lines
565 B
Python
21 lines
565 B
Python
from toolchain import Recipe, shprint
|
|
from os.path import join, exists
|
|
import sh
|
|
import os
|
|
import fnmatch
|
|
import shutil
|
|
|
|
|
|
class HostSetuptools(Recipe):
|
|
depends = ["openssl", "hostpython"]
|
|
archs = ["x86_64"]
|
|
url = "setuptools"
|
|
|
|
def prebuild_arch(self, arch):
|
|
hostpython = sh.Command(self.ctx.hostpython)
|
|
sh.curl("-O", "https://bootstrap.pypa.io/ez_setup.py")
|
|
# Installed setuptools egg should be extracted in hostpython
|
|
# site-packages(v28.3.0)
|
|
shprint(hostpython, "./ez_setup.py")
|
|
|
|
recipe = HostSetuptools()
|