don't try to install cffi to hostpython via cffi recipe
This commit is contained in:
parent
e0f7ec5197
commit
263f89bb8c
2 changed files with 9 additions and 6 deletions
|
@ -50,10 +50,11 @@ class CffiRecipe(CythonRecipe):
|
|||
# File "/.../kivy-ios/dist/hostpython/lib/python2.7/site-packages/cffi/api.py", line 56, in __init__
|
||||
# import _cffi_backend as backend
|
||||
# ImportError: dynamic module does not define init function (init_cffi_backend)
|
||||
r = self.get_recipe('hostlibffi', self.ctx)
|
||||
build_env = r.get_recipe_env(arch)
|
||||
args = [hostpython, "setup.py", "install"]
|
||||
shprint(*args, _env=build_env)
|
||||
#
|
||||
#r = self.get_recipe('hostlibffi', self.ctx)
|
||||
#build_env = r.get_recipe_env(arch)
|
||||
#args = [hostpython, "setup.py", "install"]
|
||||
#shprint(*args, _env=build_env)
|
||||
|
||||
# install cffi in root site packages
|
||||
build_env = arch.get_env()
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
from os.path import join
|
||||
from toolchain import CythonRecipe
|
||||
from toolchain import shprint
|
||||
import os
|
||||
import sh
|
||||
|
||||
|
||||
|
@ -12,6 +13,7 @@ class CryptographyRecipe(CythonRecipe):
|
|||
"60984cb85cc38c4ebdfca27b32a6df6f1914959d8790f5a349608c78be61/"
|
||||
"cryptography-{version}.tar.gz"
|
||||
)
|
||||
library = "libcryptography.a"
|
||||
depends = ["host_setuptools", "cffi", "six", "idna", "pyasn1", "enum34"]
|
||||
cythonize = False
|
||||
|
||||
|
@ -38,8 +40,8 @@ class CryptographyRecipe(CythonRecipe):
|
|||
build_env['PYTHONPATH'] = pythonpath
|
||||
args = [hostpython, "setup.py", "install", "--prefix", dest_dir]
|
||||
shprint(*args, _env=build_env)
|
||||
#args = [hostpython, "setup.py", "install"]
|
||||
#shprint(*args, _env=build_env)
|
||||
args = [hostpython, "setup.py", "install"]
|
||||
shprint(*args, _env=build_env)
|
||||
|
||||
recipe = CryptographyRecipe()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue