8b2694efb7
* fix build for openssl 1.1.1b required for sdk (cherry picked from commit aa49e3b2755b97b6331cdbbb89efc954de8d5977) * use js code from master * fix openssl recipe and tweak build (cherry picked from commit 6e94c27021c7bd7b1e880c2fc314850e36a5a38e) * remove unused build recipes (cherry picked from commit f5c0577bdb175bfc0990602936bbc9e2052e1f25)
22 lines
850 B
Python
22 lines
850 B
Python
from pythonforandroid.recipe import PythonRecipe
|
|
|
|
|
|
class Enum34Recipe(PythonRecipe):
|
|
version = '1.1.6'
|
|
url = 'https://pypi.python.org/packages/source/e/enum34/enum34-{version}.tar.gz'
|
|
depends = ['setuptools']
|
|
site_packages_name = 'enum'
|
|
call_hostpython_via_targetpython = False
|
|
|
|
def should_build(self, arch):
|
|
if 'python3' in self.ctx.python_recipe.name:
|
|
# Since python 3.6 the enum34 library is no longer compatible with
|
|
# the standard library and it will cause errors, so we disable it
|
|
# in favour of the internal module, but we still add python3 to
|
|
# attribute `depends` because otherwise we will not be able to
|
|
# build the cryptography recipe.
|
|
return False
|
|
return super(Enum34Recipe, self).should_build(arch)
|
|
|
|
|
|
recipe = Enum34Recipe()
|