recipe dependencies

This commit is contained in:
Robert Niederreiter 2016-10-14 17:59:39 +02:00
parent bad28e3735
commit 26a76b65e5
8 changed files with 19 additions and 13 deletions

View file

@ -9,7 +9,13 @@ class CffiRecipe(CythonRecipe):
"686af8873b70028fccf67b15c78fd4e4667a3da995007afc71e786d61b0a/" "686af8873b70028fccf67b15c78fd4e4667a3da995007afc71e786d61b0a/"
"cffi-{version}.tar.gz" "cffi-{version}.tar.gz"
) )
depends = ["libffi", "pycparser"] depends = ["libffi", "host_setuptools", "pycparser"]
cythonize = False cythonize = False
def get_recipe_env(self, arch):
env = super(CffiRecipe, self).get_recipe_env(arch)
env["CC"] += " -I{}".format(
join(self.ctx.dist_dir, "include", arch.arch, "libffi"))
return env
recipe = CffiRecipe() recipe = CffiRecipe()

View file

@ -10,13 +10,13 @@ class CryptographyRecipe(CythonRecipe):
"60984cb85cc38c4ebdfca27b32a6df6f1914959d8790f5a349608c78be61/" "60984cb85cc38c4ebdfca27b32a6df6f1914959d8790f5a349608c78be61/"
"cryptography-{version}.tar.gz" "cryptography-{version}.tar.gz"
) )
depends = ["host_setuptools", "six", "idna", "pyasn1"] depends = ["host_setuptools", "cffi", "six", "idna", "pyasn1", "enum34"]
cythonize = False cythonize = False
def get_recipe_env(self, arch): #def get_recipe_env(self, arch):
env = super(CryptographyRecipe, self).get_recipe_env(arch) # env = super(CryptographyRecipe, self).get_recipe_env(arch)
env["CC"] += " -I{}".format( # env["CC"] += " -I{}".format(
join(self.ctx.dist_dir, "include", arch.arch, "libffi")) # join(self.ctx.dist_dir, "include", arch.arch, "libffi"))
return env # return env
recipe = CryptographyRecipe() recipe = CryptographyRecipe()

View file

@ -12,7 +12,7 @@ class Enum34Recipe(PythonRecipe):
"31d502c25302814a7c2f1d3959d2a3b3f78e509002ba91aea64993936876/" "31d502c25302814a7c2f1d3959d2a3b3f78e509002ba91aea64993936876/"
"enum34-{version}.tar.gz" "enum34-{version}.tar.gz"
) )
depends = ["python"] depends = ["python", "host_setuptools"]
def install(self): def install(self):
arch = list(self.filtered_archs)[0] arch = list(self.filtered_archs)[0]

View file

@ -12,7 +12,7 @@ class IdnaRecipe(PythonRecipe):
"8c27516fbaa8147acd2e431086b473c453c428e24e8fb99a1d89ce381851/" "8c27516fbaa8147acd2e431086b473c453c428e24e8fb99a1d89ce381851/"
"idna-{version}.tar.gz" "idna-{version}.tar.gz"
) )
depends = ["python"] depends = ["python", "host_setuptools"]
def install(self): def install(self):
arch = list(self.filtered_archs)[0] arch = list(self.filtered_archs)[0]

View file

@ -12,7 +12,7 @@ class IPAddressRecipe(PythonRecipe):
"3b64955ff73f9e3155079b9ed31812afdfa5333b5c76387454d651ef593a/" "3b64955ff73f9e3155079b9ed31812afdfa5333b5c76387454d651ef593a/"
"ipaddress-{version}.tar.gz" "ipaddress-{version}.tar.gz"
) )
depends = ["python"] depends = ["python", "host_setuptools"]
def install(self): def install(self):
arch = list(self.filtered_archs)[0] arch = list(self.filtered_archs)[0]

View file

@ -12,7 +12,7 @@ class Pyasn1Recipe(PythonRecipe):
"377e3dd2e95f9020dbd0dfd3c47aaa7deebe3c68d3857a4e51917146ae8b/" "377e3dd2e95f9020dbd0dfd3c47aaa7deebe3c68d3857a4e51917146ae8b/"
"pyasn1-{version}.tar.gz" "pyasn1-{version}.tar.gz"
) )
depends = ["python"] depends = ["ipaddress"]
def install(self): def install(self):
arch = list(self.filtered_archs)[0] arch = list(self.filtered_archs)[0]

View file

@ -12,7 +12,7 @@ class PyOpenSSLRecipe(PythonRecipe):
"79c75db50e57350a7cefb70b110255757e9abd380a50ebdc0cfd853b7450/" "79c75db50e57350a7cefb70b110255757e9abd380a50ebdc0cfd853b7450/"
"pyOpenSSL-{version}.tar.gz" "pyOpenSSL-{version}.tar.gz"
) )
depends = ["openssl", "six", "cryptography"] depends = ["openssl", "cryptography"]
def install(self): def install(self):
arch = list(self.filtered_archs)[0] arch = list(self.filtered_archs)[0]

View file

@ -12,7 +12,7 @@ class TxaioRecipe(PythonRecipe):
"f7d88767d65dbfc20d4b4aa0dad657dbbe8ca629ead2bef24da04630a12a/" "f7d88767d65dbfc20d4b4aa0dad657dbbe8ca629ead2bef24da04630a12a/"
"txaio-{version}.tar.gz" "txaio-{version}.tar.gz"
) )
depends = ["six"] depends = ["host_setuptools", "six"]
def install(self): def install(self):
arch = list(self.filtered_archs)[0] arch = list(self.filtered_archs)[0]