twisted and autobahn related recipe stubs
This commit is contained in:
parent
d6f2e3f8d2
commit
8481f19564
4 changed files with 82 additions and 0 deletions
21
recipes/autobahn/__init__.py
Normal file
21
recipes/autobahn/__init__.py
Normal 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()
|
21
recipes/hostsetuptools/__init__.py
Normal file
21
recipes/hostsetuptools/__init__.py
Normal 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()
|
20
recipes/twisted/__init__.py
Normal file
20
recipes/twisted/__init__.py
Normal 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()
|
20
recipes/zope_interface/__init__.py
Normal file
20
recipes/zope_interface/__init__.py
Normal 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()
|
Loading…
Reference in a new issue