Skip to content

Commit 6e21d7f

Browse files
committed
WiP: python 3.3
1 parent ae149a2 commit 6e21d7f

17 files changed

+81
-1005
lines changed

recipes/hostpython/Setup

Lines changed: 0 additions & 495 deletions
This file was deleted.

recipes/hostpython/recipe.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
#!/bin/bash
22

3-
VERSION_hostpython=2.7.2
3+
VERSION_hostpython=3.3.2
44
URL_hostpython=http://python.org/ftp/python/$VERSION_hostpython/Python-$VERSION_hostpython.tar.bz2
5-
MD5_hostpython=ba7b2f11ffdbf195ee0d111b9455a5bd
5+
MD5_hostpython=7dffe775f3bea68a44f762a3490e5e28
6+
67

78
# must be generated ?
89
BUILD_hostpython=$BUILD_PATH/hostpython/$(get_directory $URL_hostpython)
910
RECIPE_hostpython=$RECIPES_PATH/hostpython
1011

1112
function prebuild_hostpython() {
1213
cd $BUILD_hostpython
13-
try cp $RECIPE_hostpython/Setup Modules/Setup
1414
}
1515

1616
function build_hostpython() {
@@ -23,7 +23,7 @@ function build_hostpython() {
2323
fi
2424

2525
try ./configure
26-
try make -j5
26+
try make
2727
try mv Parser/pgen hostpgen
2828

2929
if [ -f python.exe ]; then

recipes/python/config.site

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ac_cv_file__dev_ptmx=no
2+
ac_cv_file__dev_ptc=no

recipes/python/fix-3.3.2.patch

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
diff -rc Python-3.3.2-origin/Modules/pwdmodule.c Python-3.3.2/Modules/pwdmodule.c
2+
*** Python-3.3.2-origin/Modules/pwdmodule.c 2013-05-16 00:32:59.000000000 +0800
3+
--- Python-3.3.2/Modules/pwdmodule.c 2013-05-27 11:08:18.003728652 +0800
4+
***************
5+
*** 79,86 ****
6+
--- 79,90 ----
7+
#ifdef __VMS
8+
SETS(setIndex++, "");
9+
#else
10+
+ #ifdef ANDROID
11+
+ SETS(setIndex++, "");
12+
+ #else
13+
SETS(setIndex++, p->pw_gecos);
14+
#endif
15+
+ #endif
16+
SETS(setIndex++, p->pw_dir);
17+
SETS(setIndex++, p->pw_shell);
18+
19+
diff -rc Python-3.3.2-origin/Python/fileutils.c Python-3.3.2/Python/fileutils.c
20+
*** Python-3.3.2-origin/Python/fileutils.c 2013-05-16 00:33:00.000000000 +0800
21+
--- Python-3.3.2/Python/fileutils.c 2013-05-27 11:05:48.571727098 +0800
22+
***************
23+
*** 98,103 ****
24+
--- 98,104 ----
25+
};
26+
#endif
27+
28+
+ #ifndef ANDROID
29+
loc = setlocale(LC_CTYPE, NULL);
30+
if (loc == NULL)
31+
goto error;
32+
***************
33+
*** 105,110 ****
34+
--- 106,112 ----
35+
/* the LC_CTYPE locale is different than C */
36+
return 0;
37+
}
38+
+ #endif
39+
40+
#if defined(HAVE_LANGINFO_H) && defined(CODESET)
41+
codeset = nl_langinfo(CODESET);
42+
diff -rc Python-3.3.2-origin/Python/formatter_unicode.c Python-3.3.2/Python/formatter_unicode.c
43+
*** Python-3.3.2-origin/Python/formatter_unicode.c 2013-05-16 00:33:00.000000000 +0800
44+
--- Python-3.3.2/Python/formatter_unicode.c 2013-05-27 10:51:48.371718356 +0800
45+
***************
46+
*** 665,670 ****
47+
--- 665,671 ----
48+
{
49+
switch (type) {
50+
case LT_CURRENT_LOCALE: {
51+
+ #ifndef ANDROID
52+
struct lconv *locale_data = localeconv();
53+
locale_info->decimal_point = PyUnicode_DecodeLocale(
54+
locale_data->decimal_point,
55+
***************
56+
*** 679,684 ****
57+
--- 680,686 ----
58+
return -1;
59+
}
60+
locale_info->grouping = locale_data->grouping;
61+
+ #endif
62+
break;
63+
}
64+
case LT_DEFAULT_LOCALE:

recipes/python/patches/Python-2.7.2-xcompile.patch

Lines changed: 0 additions & 194 deletions
This file was deleted.

recipes/python/patches/disable-modules.patch

Lines changed: 0 additions & 11 deletions
This file was deleted.

recipes/python/patches/fix-configure-darwin.patch

Lines changed: 0 additions & 40 deletions
This file was deleted.

recipes/python/patches/fix-distutils-darwin.patch

Lines changed: 0 additions & 24 deletions
This file was deleted.

recipes/python/patches/fix-dynamic-lookup.patch

Lines changed: 0 additions & 11 deletions
This file was deleted.

recipes/python/patches/fix-filesystemdefaultencoding.patch

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)