File tree 2 files changed +16
-2
lines changed
pythonforandroid/recipes/python2
2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ class Python2Recipe(Recipe):
11
11
url = 'http://python.org/ftp/python/{version}/Python-{version}.tar.bz2'
12
12
name = 'python2'
13
13
14
- depends = ['hostpython2' ]
14
+ depends = ['hostpython2' ]
15
15
conflicts = ['python3' ]
16
16
17
17
def prebuild_armeabi (self ):
@@ -39,6 +39,9 @@ def prebuild_armeabi(self):
39
39
self .apply_patch (join ('patches' , 'fix-configure-darwin.patch' ))
40
40
self .apply_patch (join ('patches' , 'fix-distutils-darwin.patch' ))
41
41
42
+ if self .ctx .android_api > 19 :
43
+ self .apply_patch (join ('patches' , 'fix-ftime-removal.patch' ))
44
+
42
45
shprint (sh .touch , join (build_dir , '.patched' ))
43
46
44
47
def build_armeabi (self ):
@@ -125,7 +128,7 @@ def do_python_build(self):
125
128
_env = env )
126
129
except sh .ErrorReturnCode_2 :
127
130
print ('First python2 make failed. This is expected, trying again.' )
128
-
131
+
129
132
130
133
print ('Second install (expected to work)' )
131
134
shprint (sh .touch , 'python.exe' , 'python' )
Original file line number Diff line number Diff line change
1
+ diff -u -r Python-2.7.2.orig/Modules/timemodule.c Python-2.7.2/Modules/timemodule.c
2
+ --- Python-2.7.2.orig/Modules/timemodule.c 2011-06-11 15:46:27.000000000 +0000
3
+ +++ Python-2.7.2/Modules/timemodule.c 2015-09-11 10:37:36.708661691 +0000
4
+ @@ -27,6 +27,7 @@
5
+ #include <io.h>
6
+ #endif
7
+
8
+ + #undef HAVE_FTIME
9
+ #ifdef HAVE_FTIME
10
+ #include <sys/timeb.h>
11
+ #if !defined(MS_WINDOWS) && !defined(PYOS_OS2)
You can’t perform that action at this time.
0 commit comments