kivy-ios/recipes/host_setuptools/__init__.py

22 lines
565 B
Python
Raw Normal View History

from toolchain import Recipe, shprint
from os.path import join, exists
import sh
import os
import fnmatch
import shutil
class HostSetuptools(Recipe):
2016-10-14 14:07:10 +02:00
depends = ["openssl", "hostpython"]
2016-02-14 14:49:25 +01:00
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")
2016-10-14 14:07:10 +02:00
# Installed setuptools egg should be extracted in hostpython
# site-packages(v28.3.0)
2016-10-14 10:05:44 +02:00
shprint(hostpython, "./ez_setup.py")
2016-02-14 14:49:25 +01:00
recipe = HostSetuptools()