d180ee0807
Borrowed from p4a: https://github.com/kivy/python-for-android/pull/2159 Also refs upstream issue: https://bugs.python.org/issue40261 Note that the fix used upstream cannot really be used directly here because the actual system Python is impacted. Adds venv build to CI to check for regressions.
20 lines
577 B
Python
20 lines
577 B
Python
from toolchain import Recipe, shprint, cd, cache_execution
|
|
import sh
|
|
|
|
|
|
class HostSetuptools3(Recipe):
|
|
depends = ["openssl", "hostpython3"]
|
|
archs = ["x86_64"]
|
|
version = '40.9.0'
|
|
url = 'https://pypi.python.org/packages/source/s/setuptools/setuptools-{version}.zip'
|
|
|
|
@cache_execution
|
|
def install(self):
|
|
arch = self.filtered_archs[0]
|
|
build_dir = self.get_build_dir(arch.arch)
|
|
hostpython = sh.Command(self.ctx.hostpython)
|
|
with cd(build_dir):
|
|
shprint(hostpython, "setup.py", "install")
|
|
|
|
|
|
recipe = HostSetuptools3()
|