blob: 4c942f1b75781f75fe28dc0f2475a49f3344f34d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
Index: python-2.5.2/debian/rules
===================================================================
--- python-2.5.2.orig/debian/rules 2008-02-26 14:15:36.000000000 -0300
+++ python-2.5.2/debian/rules 2008-02-26 14:17:42.000000000 -0300
@@ -134,6 +134,8 @@
)
find $(d_dev)/$(scriptdir) -name "*.pyo" -type f | grep -v -f $(only_dev_list) | xargs rm -f
+ find $(d_dev)/$(scriptdir)/encodings | grep -f $(only_dev_list) | xargs -i mv '{}' $(d_dev)/$(scriptdir)/encodings_orient
+
# move the interpreter
mv $(d_dev)/usr/bin/python2.5 $(d_base)/usr/bin/python2.5
Index: python-2.5.2/Lib/encodings/__init__.py
===================================================================
--- python-2.5.2.orig/Lib/encodings/__init__.py 2008-02-26 14:15:07.000000000 -0300
+++ python-2.5.2/Lib/encodings/__init__.py 2008-02-26 14:17:42.000000000 -0300
@@ -99,6 +99,14 @@
pass
else:
break
+
+ try:
+ mod = __import__('encodings_orient.' + modname,
+ globals(), locals(), _import_tail)
+ except ImportError:
+ pass
+ else:
+ break
else:
mod = None
Index: python-2.5.2/Makefile.pre.in
===================================================================
--- python-2.5.2.orig/Makefile.pre.in 2008-02-26 14:15:07.000000000 -0300
+++ python-2.5.2/Makefile.pre.in 2008-02-26 14:17:42.000000000 -0300
@@ -717,7 +717,7 @@
PLATMACPATH=:plat-mac:plat-mac/lib-scriptpackages
LIBSUBDIRS= lib-tk site-packages test test/output test/data \
test/decimaltestdata \
- encodings compiler hotshot \
+ encodings encodings_orient compiler hotshot \
email email/mime email/test email/test/data \
sqlite3 sqlite3/test \
logging bsddb bsddb/test csv wsgiref \
Index: python-2.5.2/debian/onlysdk
===================================================================
--- python-2.5.2.orig/debian/onlysdk 2008-02-26 14:15:07.000000000 -0300
+++ python-2.5.2/debian/onlysdk 2008-02-26 14:17:42.000000000 -0300
@@ -1,7 +1,6 @@
distutils
compile
-encodings/cp
-encodings/mac
+encodings_orient
doctest
unittest
hotshot
Index: python-2.5.2/Lib/encodings_orient/__init__.py
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ python-2.5.2/Lib/encodings_orient/__init__.py 2008-02-26 14:17:42.000000000 -0300
@@ -0,0 +1 @@
+#Dummy
|