File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
pythonforandroid/recipes/cdecimal Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ class CdecimalRecipe(CompiledComponentsPythonRecipe):
1010
1111 depends = ['python2' ]
1212
13- patches = ['locale.patch' ]
13+ patches = ['locale.patch' ,
14+ 'cross-compile.patch' ]
1415
1516 def prebuild_arch (self , arch ):
1617 super (CdecimalRecipe , self ).prebuild_arch (arch )
Original file line number Diff line number Diff line change 1+ diff -Naur cdecimal/setup.py b/setup.py
2+ --- cdecimal/setup.py 2015-12-14 13:48:23.085997956 -0600
3+ +++ b/setup.py 2015-12-14 13:48:11.413805121 -0600
4+ @@ -229,7 +229,7 @@
5+ def configure(machine, cc, py_size_t):
6+ os.chmod("./configure", 0x1ed) # pip removes execute permissions.
7+ if machine: # string has been validated.
8+ - os.system("./configure MACHINE=%s" % machine)
9+ + os.system("./configure --host=%s MACHINE=%s" % (os.environ['TOOLCHAIN_PREFIX'], machine))
10+ elif 'sunos' in SYSTEM and py_size_t == 8:
11+ # cc is from sysconfig.
12+ os.system("./configure CC='%s -m64'" % cc)
You can’t perform that action at this time.
0 commit comments