2019-03-30 21:58:45 +01:00
|
|
|
from pythonforandroid.recipe import PythonRecipe, current_directory, shprint
|
2017-08-13 03:24:00 +02:00
|
|
|
import sh
|
|
|
|
|
|
|
|
|
|
|
|
class StormRecipe(PythonRecipe):
|
|
|
|
version = '0.20'
|
|
|
|
url = 'https://launchpad.net/storm/trunk/{version}/+download/storm-{version}.tar.bz2'
|
2019-03-30 21:58:45 +01:00
|
|
|
depends = []
|
2017-08-13 03:24:00 +02:00
|
|
|
site_packages_name = 'storm'
|
|
|
|
call_hostpython_via_targetpython = False
|
|
|
|
|
|
|
|
def prebuild_arch(self, arch):
|
|
|
|
with current_directory(self.get_build_dir(arch.arch)):
|
|
|
|
# Cross compiling for 32 bits in 64 bit ubuntu before precise is
|
|
|
|
# failing. See
|
|
|
|
# https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/873007
|
|
|
|
shprint(sh.sed, '-i',
|
|
|
|
"s|BUILD_CEXTENSIONS = True|BUILD_CEXTENSIONS = False|",
|
|
|
|
'setup.py')
|
|
|
|
|
|
|
|
|
|
|
|
recipe = StormRecipe()
|