twisted and autobahn related recipe stubs

This commit is contained in:
Robert Niederreiter 2016-10-13 11:20:55 +02:00
parent d6f2e3f8d2
commit 8481f19564
4 changed files with 82 additions and 0 deletions

View file

@ -0,0 +1,21 @@
from toolchain import PythonRecipe, shprint
from os.path import join
import sh, os
class AutobahnRecipe(PythonRecipe):
version = "0.16.0"
url = "https://github.com/crossbario/autobahn-python/archive/v{version}.zip"
#depends = ["python", "setuptools", "zope_interface", "twisted"]
depends = ["python", "setuptools", "zope_interface", "twisted"]
def install(self):
arch = list(self.filtered_archs)[0]
build_dir = self.get_build_dir(arch.arch)
os.chdir(build_dir)
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = os.path.join(self.ctx.dist_dir, "root", "python")
build_env['PYTHONPATH'] = os.path.join(dest_dir, 'lib', 'python2.7', 'site-packages')
shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)
recipe = AutobahnRecipe()

View file

@ -0,0 +1,21 @@
from toolchain import PythonRecipe, shprint
from os.path import join
import sh, os
class HostSetuptoolsRecipe(PythonRecipe):
version = "28.0.0"
url = "https://github.com/pypa/setuptools/archive/v{version}.zip"
depends = ["python"]
def install(self):
arch = list(self.filtered_archs)[0]
build_dir = self.get_build_dir(arch.arch)
os.chdir(build_dir)
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = os.path.join(self.ctx.dist_dir, "root", "python")
build_env['PYTHONPATH'] = os.path.join(dest_dir, 'lib', 'python2.7', 'site-packages')
shprint(hostpython, "bootstrap.py", _env=build_env)
shprint(hostpython, "setup.py", "install", _env=build_env)
recipe = HostSetuptoolsRecipe()

View file

@ -0,0 +1,20 @@
from toolchain import PythonRecipe, shprint
from os.path import join
import sh, os
class TwistedRecipe(PythonRecipe):
version = "16.1.1"
url = "https://github.com/twisted/twisted/archive/twisted-{version}.zip"
depends = ["python", "zope_interface", "openssl"]
def install(self):
arch = list(self.filtered_archs)[0]
build_dir = self.get_build_dir(arch.arch)
os.chdir(build_dir)
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = os.path.join(self.ctx.dist_dir, "root", "python")
build_env['PYTHONPATH'] = os.path.join(dest_dir, 'lib', 'python2.7', 'site-packages')
shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)
recipe = TwistedRecipe()

View file

@ -0,0 +1,20 @@
from toolchain import PythonRecipe, shprint
from os.path import join
import sh, os
class ZopeInterfaceRecipe(PythonRecipe):
version = "4.3.2"
url="https://github.com/zopefoundation/zope.interface/archive/{version}.zip"
depends = ["python", "hostsetuptools"]
def install(self):
arch = list(self.filtered_archs)[0]
build_dir = self.get_build_dir(arch.arch)
os.chdir(build_dir)
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = os.path.join(self.ctx.dist_dir, "root", "python")
build_env['PYTHONPATH'] = os.path.join(dest_dir, 'lib', 'python2.7', 'site-packages')
shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)
recipe = ZopeInterfaceRecipe()