|
@@ -53,338 +53,100 @@ endef
|
53
|
53
|
|
54
|
54
|
define Package/python
|
55
|
55
|
$(call Package/python/Default)
|
56
|
|
- DEPENDS:=+libpthread +zlib +libffi +libopenssl +libcrypto
|
|
56
|
+ DEPENDS:=+libpthread +zlib +libffi +libopenssl
|
57
|
57
|
endef
|
58
|
58
|
|
59
|
59
|
define Package/python/description
|
60
|
|
-$(call Package/python/Default/description)
|
61
|
|
- .
|
62
|
|
- This package contains only a minimal Python install.
|
|
60
|
+ This package contains only the interpreter and the bare minimum
|
|
61
|
+ for the interpreter to start.
|
63
|
62
|
endef
|
64
|
63
|
|
65
|
64
|
define Package/python-full
|
66
|
65
|
$(call Package/python/Default)
|
67
|
|
- TITLE+= (full)
|
68
|
|
- DEPENDS:=@PACKAGE_python +PACKAGE_python:python
|
|
66
|
+ TITLE:=Full install (minus a few libs)
|
|
67
|
+ DEPENDS:=@PACKAGE_python +PACKAGE_python:python +libncursesw
|
69
|
68
|
endef
|
70
|
69
|
|
71
|
70
|
define Package/python-full/description
|
72
|
|
-$(call Package/python/Default/description)
|
73
|
|
- .
|
74
|
|
- This package contains the full Python install.
|
75
|
|
-endef
|
76
|
|
-
|
77
|
|
-define Package/python-doc
|
78
|
|
-$(call Package/python/Default)
|
79
|
|
- TITLE:=Python interactive documentation
|
80
|
|
- DEPENDS:=@PACKAGE_python +PACKAGE_python:python
|
81
|
|
-endef
|
82
|
|
-
|
83
|
|
-define Package/python-bzip2
|
84
|
|
-$(call Package/python/Default)
|
85
|
|
- TITLE:=Python support for Bzip2
|
86
|
|
- DEPENDS:=@PACKAGE_python +PACKAGE_python:python +libbz2
|
87
|
|
-endef
|
88
|
|
-
|
89
|
|
-define Package/python-expat
|
90
|
|
-$(call Package/python/Default)
|
91
|
|
- TITLE:=Python support for expat
|
92
|
|
- DEPENDS:=@PACKAGE_python +PACKAGE_python:python +libexpat
|
93
|
|
-endef
|
94
|
|
-
|
95
|
|
-define Package/python-gzip
|
96
|
|
-$(call Package/python/Default)
|
97
|
|
- TITLE:=Python support for gzip
|
98
|
|
- DEPENDS:=@PACKAGE_python +PACKAGE_python:python
|
99
|
|
-endef
|
100
|
|
-
|
101
|
|
-define Package/python-openssl
|
102
|
|
-$(call Package/python/Default)
|
103
|
|
- TITLE:=Python support for OpenSSL
|
104
|
|
- DEPENDS:=@PACKAGE_python +PACKAGE_python:python +libopenssl
|
105
|
|
-endef
|
106
|
|
-
|
107
|
|
-define Package/python-shutil
|
108
|
|
-$(call Package/python/Default)
|
109
|
|
- TITLE:=Python support for shutil
|
110
|
|
- DEPENDS:=@PACKAGE_python +PACKAGE_python:python
|
111
|
|
-endef
|
112
|
|
-
|
113
|
|
-# Needs datetime
|
114
|
|
-define Package/python-sqlite3
|
115
|
|
-$(call Package/python/Default)
|
116
|
|
- TITLE:=Python support for sqlite3
|
117
|
|
- DEPENDS:=@PACKAGE_python +PACKAGE_python:python +libsqlite3
|
118
|
|
-endef
|
119
|
|
-
|
120
|
|
-define Package/python-gdbm
|
121
|
|
-$(call Package/python/Default)
|
122
|
|
- TITLE:=Python support for gdbm
|
123
|
|
- DEPENDS:=@PACKAGE_python +PACKAGE_python:python +libgdbm
|
124
|
|
-endef
|
125
|
|
-
|
126
|
|
-define Package/python-readline
|
127
|
|
-$(call Package/python/Default)
|
128
|
|
- TITLE:=Python support for readline
|
129
|
|
- DEPENDS:=@PACKAGE_python +PACKAGE_python:python +libreadline +libncursesw @BROKEN
|
130
|
|
-endef
|
131
|
|
-
|
132
|
|
-define Package/python-ncurses
|
133
|
|
-$(call Package/python/Default)
|
134
|
|
- TITLE:=Python support for readline
|
135
|
|
- DEPENDS:=@PACKAGE_python +PACKAGE_python:python +libncursesw
|
|
71
|
+ This package contains the (almost) full Python install.
|
136
|
72
|
endef
|
137
|
73
|
|
138
|
74
|
MAKE_FLAGS:=\
|
139
|
|
- $(TARGET_CONFIGURE_OPTS) \
|
140
|
75
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
141
|
76
|
CROSS_COMPILE=yes \
|
142
|
|
- CFLAGS="$(TARGET_CFLAGS) -DNDEBUG -fno-inline" \
|
143
|
|
- LDFLAGS="$(TARGET_LDFLAGS) -L$(PKG_BUILD_DIR)" \
|
144
|
77
|
LD="$(TARGET_CC)" \
|
145
|
78
|
PGEN=pgen2
|
146
|
79
|
|
|
80
|
+EXTRA_CFLAGS+= \
|
|
81
|
+ -DNDEBUG -fno-inline
|
|
82
|
+EXTRA_LDFLAGS+= \
|
|
83
|
+ -L$(PKG_BUILD_DIR)
|
|
84
|
+
|
147
|
85
|
ENABLE_IPV6:=
|
148
|
86
|
ifeq ($(CONFIG_IPV6),y)
|
149
|
87
|
ENABLE_IPV6 += --enable-ipv6
|
150
|
88
|
endif
|
151
|
89
|
|
152
|
|
-define Build/Configure
|
153
|
|
- -$(MAKE) -C $(PKG_BUILD_DIR) distclean
|
154
|
|
- (cd $(PKG_BUILD_DIR); autoreconf --force --install || exit 0)
|
155
|
|
- $(CP) ./files/config.site $(PKG_BUILD_DIR)
|
156
|
|
- $(call Build/Configure/Default, \
|
157
|
|
- --sysconfdir=/etc \
|
158
|
|
- --enable-shared \
|
159
|
|
- --without-cxx-main \
|
160
|
|
- --with-threads \
|
161
|
|
- --with-system-ffi="$(STAGING_DIR)/usr" \
|
162
|
|
- --without-ensurepip \
|
163
|
|
- --without-pymalloc \
|
164
|
|
- $(ENABLE_IPV6) \
|
165
|
|
- CONFIG_SITE="$(PKG_BUILD_DIR)/config.site" \
|
166
|
|
- OPT="$(TARGET_CFLAGS)" \
|
167
|
|
- )
|
|
90
|
+CONFIGURE_ARGS+= \
|
|
91
|
+ --sysconfdir=/etc \
|
|
92
|
+ --enable-shared \
|
|
93
|
+ --without-cxx-main \
|
|
94
|
+ --with-threads \
|
|
95
|
+ --with-system-ffi="$(STAGING_DIR)/usr" \
|
|
96
|
+ --without-pymalloc \
|
|
97
|
+ $(ENABLE_IPV6) \
|
|
98
|
+ CONFIG_SITE="$(PKG_BUILD_DIR)/config.site" \
|
|
99
|
+ OPT="$(TARGET_CFLAGS)"
|
|
100
|
+
|
|
101
|
+define Hooks/Configure/Pre/ConfigSiteInstall
|
|
102
|
+ $(CP) ./files/config.site $(PKG_BUILD_DIR)/config.site
|
168
|
103
|
endef
|
169
|
104
|
|
|
105
|
+Hooks/Configure/Pre+=\
|
|
106
|
+ Hooks/Configure/Pre/ConfigSiteInstall
|
|
107
|
+
|
170
|
108
|
define Build/InstallDev
|
171
|
|
- $(INSTALL_DIR) $(2)/bin $(1)/usr/bin $(1)/usr/include $(1)/usr/lib
|
172
|
109
|
$(INSTALL_DIR) $(STAGING_DIR)/mk/
|
173
|
110
|
$(INSTALL_DATA) ./files/python-package.mk $(STAGING_DIR)/mk/
|
174
|
|
- $(CP) \
|
175
|
|
- $(PKG_INSTALL_DIR)/usr/include/python$(PYTHON_VERSION) \
|
176
|
|
- $(1)/usr/include/
|
177
|
|
- $(CP) \
|
178
|
|
- $(STAGING_DIR_HOST)/lib/python$(PYTHON_VERSION) \
|
179
|
|
- $(PKG_INSTALL_DIR)/usr/lib/libpython$(PYTHON_VERSION).so* \
|
180
|
|
- $(1)/usr/lib/
|
181
|
|
- $(CP) \
|
182
|
|
- $(PKG_INSTALL_DIR)/usr/lib/python$(PYTHON_VERSION)/config \
|
183
|
|
- $(1)/usr/lib/python$(PYTHON_VERSION)/
|
184
|
|
-
|
185
|
|
- $(CP) \
|
186
|
|
- $(STAGING_DIR_HOST)/bin/python$(PYTHON_VERSION)-config \
|
187
|
|
- $(2)/bin/
|
188
|
|
- $(SED) 's,^#!.*,#!/usr/bin/env python$(PYTHON_VERSION),g' $(2)/bin/python$(PYTHON_VERSION)-config
|
189
|
|
-endef
|
190
|
|
-
|
191
|
|
-define PyPackage/python-full/filespec
|
192
|
|
-+|/usr/lib/python$(PYTHON_VERSION)
|
193
|
|
--|/usr/lib/python$(PYTHON_VERSION)/bsddb/test
|
194
|
|
--|/usr/lib/python$(PYTHON_VERSION)/config
|
195
|
|
--|/usr/lib/python$(PYTHON_VERSION)/ctypes/test
|
196
|
|
--|/usr/lib/python$(PYTHON_VERSION)/distutils/command/wininst-*.exe
|
197
|
|
--|/usr/lib/python$(PYTHON_VERSION)/distutils/tests
|
198
|
|
--|/usr/lib/python$(PYTHON_VERSION)/email/test
|
199
|
|
--|/usr/lib/python$(PYTHON_VERSION)/idlelib
|
200
|
|
--|/usr/lib/python$(PYTHON_VERSION)/json/tests
|
201
|
|
--|/usr/lib/python$(PYTHON_VERSION)/lib-tk
|
202
|
|
--|/usr/lib/python$(PYTHON_VERSION)/sqlite3
|
203
|
|
--|/usr/lib/python$(PYTHON_VERSION)/test
|
204
|
|
--|/usr/lib/python$(PYTHON_VERSION)/lib2to3
|
205
|
|
--|/usr/lib/python$(PYTHON_VERSION)/lib-old
|
206
|
|
--|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/bz2.so
|
207
|
|
--|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/gdbm.so
|
208
|
|
--|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_sqlite3.so
|
209
|
|
--|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_ssl.so
|
210
|
|
--|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/pyexpat.so
|
211
|
|
--|/usr/lib/python$(PYTHON_VERSION)/pydoc_data
|
212
|
|
--|/usr/lib/python$(PYTHON_VERSION)/pydoc.py
|
213
|
|
--|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_ctypes_test.so
|
214
|
|
--|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_testcapi.so
|
215
|
|
--|/usr/lib/python$(PYTHON_VERSION)/__future__.py
|
216
|
|
--|/usr/lib/python$(PYTHON_VERSION)/_abcoll.py
|
217
|
|
--|/usr/lib/python$(PYTHON_VERSION)/abc.py
|
218
|
|
--|/usr/lib/python$(PYTHON_VERSION)/codecs.py
|
219
|
|
--|/usr/lib/python$(PYTHON_VERSION)/compileall.py
|
220
|
|
--|/usr/lib/python$(PYTHON_VERSION)/ConfigParser.py
|
221
|
|
--|/usr/lib/python$(PYTHON_VERSION)/copy.py
|
222
|
|
--|/usr/lib/python$(PYTHON_VERSION)/copy_reg.py
|
223
|
|
--|/usr/lib/python$(PYTHON_VERSION)/dis.py
|
224
|
|
--|/usr/lib/python$(PYTHON_VERSION)/encodings
|
225
|
|
--|/usr/lib/python$(PYTHON_VERSION)/fnmatch.py
|
226
|
|
--|/usr/lib/python$(PYTHON_VERSION)/genericpath.py
|
227
|
|
--|/usr/lib/python$(PYTHON_VERSION)/getopt.py
|
228
|
|
--|/usr/lib/python$(PYTHON_VERSION)/glob.py
|
229
|
|
--|/usr/lib/python$(PYTHON_VERSION)/hashlib.py
|
230
|
|
--|/usr/lib/python$(PYTHON_VERSION)/inspect.py
|
231
|
|
--|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/array.so
|
232
|
|
--|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/binascii.so
|
233
|
|
--|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/cStringIO.so
|
234
|
|
--|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_curses.so
|
235
|
|
--|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_curses_panel.so
|
236
|
|
--|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/dbm.so
|
237
|
|
--|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_bsddb.so
|
238
|
|
--|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/fcntl.so
|
239
|
|
--|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/grp.so
|
240
|
|
--|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/itertools.so
|
241
|
|
--|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/math.so
|
242
|
|
--|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_hashlib.so
|
243
|
|
--|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/operator.so
|
244
|
|
--|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_random.so
|
245
|
|
--|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/readline.so
|
246
|
|
--|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/select.so
|
247
|
|
--|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_socket.so
|
248
|
|
--|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/strop.so
|
249
|
|
--|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_struct.so
|
250
|
|
--|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/syslog.so
|
251
|
|
--|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/time.so
|
252
|
|
--|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/unicodedata.so
|
253
|
|
--|/usr/lib/python$(PYTHON_VERSION)/linecache.py
|
254
|
|
--|/usr/lib/python$(PYTHON_VERSION)/md5.py
|
255
|
|
--|/usr/lib/python$(PYTHON_VERSION)/new.py
|
256
|
|
--|/usr/lib/python$(PYTHON_VERSION)/opcode.py
|
257
|
|
--|/usr/lib/python$(PYTHON_VERSION)/optparse.py
|
258
|
|
--|/usr/lib/python$(PYTHON_VERSION)/os.py
|
259
|
|
--|/usr/lib/python$(PYTHON_VERSION)/pickle.py
|
260
|
|
--|/usr/lib/python$(PYTHON_VERSION)/pickle.py
|
261
|
|
--|/usr/lib/python$(PYTHON_VERSION)/pkgutil.py
|
262
|
|
--|/usr/lib/python$(PYTHON_VERSION)/popen2.py
|
263
|
|
--|/usr/lib/python$(PYTHON_VERSION)/posixpath.py
|
264
|
|
--|/usr/lib/python$(PYTHON_VERSION)/py_compile.py
|
265
|
|
--|/usr/lib/python$(PYTHON_VERSION)/random.py
|
266
|
|
--|/usr/lib/python$(PYTHON_VERSION)/repr.py
|
267
|
|
--|/usr/lib/python$(PYTHON_VERSION)/re.py
|
268
|
|
--|/usr/lib/python$(PYTHON_VERSION)/sha.py
|
269
|
|
--|/usr/lib/python$(PYTHON_VERSION)/site.py
|
270
|
|
--|/usr/lib/python$(PYTHON_VERSION)/socket.py
|
271
|
|
--|/usr/lib/python$(PYTHON_VERSION)/sre_compile.py
|
272
|
|
--|/usr/lib/python$(PYTHON_VERSION)/sre_constants.py
|
273
|
|
--|/usr/lib/python$(PYTHON_VERSION)/sre_parse.py
|
274
|
|
--|/usr/lib/python$(PYTHON_VERSION)/sre.py
|
275
|
|
--|/usr/lib/python$(PYTHON_VERSION)/stat.py
|
276
|
|
--|/usr/lib/python$(PYTHON_VERSION)/StringIO.py
|
277
|
|
--|/usr/lib/python$(PYTHON_VERSION)/stringprep.py
|
278
|
|
--|/usr/lib/python$(PYTHON_VERSION)/string.py
|
279
|
|
--|/usr/lib/python$(PYTHON_VERSION)/struct.py
|
280
|
|
--|/usr/lib/python$(PYTHON_VERSION)/subprocess.py
|
281
|
|
--|/usr/lib/python$(PYTHON_VERSION)/tempfile.py
|
282
|
|
--|/usr/lib/python$(PYTHON_VERSION)/textwrap.py
|
283
|
|
--|/usr/lib/python$(PYTHON_VERSION)/tokenize.py
|
284
|
|
--|/usr/lib/python$(PYTHON_VERSION)/token.py
|
285
|
|
--|/usr/lib/python$(PYTHON_VERSION)/traceback.py
|
286
|
|
--|/usr/lib/python$(PYTHON_VERSION)/types.py
|
287
|
|
--|/usr/lib/python$(PYTHON_VERSION)/UserDict.py
|
288
|
|
--|/usr/lib/python$(PYTHON_VERSION)/warnings.py
|
289
|
|
--|/usr/lib/python$(PYTHON_VERSION)/weakref.py
|
290
|
|
--|/usr/lib/python$(PYTHON_VERSION)/_weakrefset.py
|
291
|
|
--|/usr/lib/python$(PYTHON_VERSION)/sysconfig.py
|
292
|
|
--|/usr/lib/python$(PYTHON_VERSION)/functools.py
|
293
|
|
--|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_functools.so
|
294
|
|
--|/usr/lib/python$(PYTHON_VERSION)/collections.py
|
295
|
|
--|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_collections.so
|
296
|
|
--|/usr/lib/python$(PYTHON_VERSION)/keyword.py
|
297
|
|
--|/usr/lib/python$(PYTHON_VERSION)/heapq.py
|
298
|
|
--|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_heapq.so
|
299
|
|
--|/usr/lib/python$(PYTHON_VERSION)/bisect.py
|
300
|
|
--|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_bisect.so
|
301
|
111
|
endef
|
302
|
112
|
|
303
|
113
|
define PyPackage/python/filespec
|
304
|
114
|
+|/usr/bin/python$(PYTHON_VERSION)
|
305
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/__future__.py
|
306
|
115
|
+|/usr/lib/python$(PYTHON_VERSION)/_abcoll.py
|
|
116
|
++|/usr/lib/python$(PYTHON_VERSION)/_sysconfigdata.py
|
|
117
|
++|/usr/lib/python$(PYTHON_VERSION)/_weakrefset.py
|
307
|
118
|
+|/usr/lib/python$(PYTHON_VERSION)/abc.py
|
308
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/codecs.py
|
309
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/compileall.py
|
310
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/ConfigParser.py
|
311
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/copy.py
|
312
|
119
|
+|/usr/lib/python$(PYTHON_VERSION)/copy_reg.py
|
313
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/dis.py
|
314
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/encodings
|
315
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/fnmatch.py
|
316
|
120
|
+|/usr/lib/python$(PYTHON_VERSION)/genericpath.py
|
317
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/getopt.py
|
318
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/glob.py
|
319
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/hashlib.py
|
320
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/inspect.py
|
321
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/array.so
|
322
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/binascii.so
|
323
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/cStringIO.so
|
324
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/fcntl.so
|
325
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/grp.so
|
326
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/itertools.so
|
327
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/math.so
|
328
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_hashlib.so
|
329
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/operator.so
|
330
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_random.so
|
331
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/select.so
|
332
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_socket.so
|
333
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/strop.so
|
334
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_struct.so
|
335
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/syslog.so
|
336
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/time.so
|
337
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/unicodedata.so
|
338
|
121
|
+|/usr/lib/python$(PYTHON_VERSION)/linecache.py
|
339
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/md5.py
|
340
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/new.py
|
341
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/opcode.py
|
342
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/optparse.py
|
343
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/os.py
|
344
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/pickle.py
|
345
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/pickle.py
|
346
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/pkgutil.py
|
347
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/popen2.py
|
348
|
122
|
+|/usr/lib/python$(PYTHON_VERSION)/posixpath.py
|
349
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/py_compile.py
|
350
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/random.py
|
351
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/repr.py
|
|
123
|
++|/usr/lib/python$(PYTHON_VERSION)/os.py
|
352
|
124
|
+|/usr/lib/python$(PYTHON_VERSION)/re.py
|
353
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/sha.py
|
354
|
125
|
+|/usr/lib/python$(PYTHON_VERSION)/site.py
|
355
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/socket.py
|
356
|
126
|
+|/usr/lib/python$(PYTHON_VERSION)/sre_compile.py
|
357
|
127
|
+|/usr/lib/python$(PYTHON_VERSION)/sre_constants.py
|
358
|
128
|
+|/usr/lib/python$(PYTHON_VERSION)/sre_parse.py
|
359
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/sre.py
|
|
129
|
++|/usr/lib/python$(PYTHON_VERSION)/sysconfig.py
|
360
|
130
|
+|/usr/lib/python$(PYTHON_VERSION)/stat.py
|
361
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/StringIO.py
|
362
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/stringprep.py
|
363
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/string.py
|
364
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/struct.py
|
365
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/subprocess.py
|
366
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/tempfile.py
|
367
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/textwrap.py
|
368
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/tokenize.py
|
369
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/token.py
|
370
|
131
|
+|/usr/lib/python$(PYTHON_VERSION)/traceback.py
|
371
|
132
|
+|/usr/lib/python$(PYTHON_VERSION)/types.py
|
372
|
133
|
+|/usr/lib/python$(PYTHON_VERSION)/UserDict.py
|
373
|
134
|
+|/usr/lib/python$(PYTHON_VERSION)/warnings.py
|
374
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/weakref.py
|
375
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/_weakrefset.py
|
376
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/config/Makefile
|
377
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/sysconfig.py
|
378
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/_sysconfigdata.py
|
379
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/functools.py
|
380
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_functools.so
|
381
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/collections.py
|
382
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_collections.so
|
383
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/keyword.py
|
384
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/heapq.py
|
385
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_heapq.so
|
386
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/bisect.py
|
387
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_bisect.so
|
|
135
|
+endef
|
|
136
|
+
|
|
137
|
+define PyPackage/python-full/filespec
|
|
138
|
++|/usr/lib/python$(PYTHON_VERSION)
|
|
139
|
+-|/usr/lib/python$(PYTHON_VERSION)/config
|
|
140
|
+-|/usr/lib/python$(PYTHON_VERSION)/distutils
|
|
141
|
+-|/usr/lib/python$(PYTHON_VERSION)/idlelib
|
|
142
|
+-|/usr/lib/python$(PYTHON_VERSION)/lib2to3
|
|
143
|
+-|/usr/lib/python$(PYTHON_VERSION)/lib-tk
|
|
144
|
+-|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_testcapi.so
|
|
145
|
+-|/usr/lib/python$(PYTHON_VERSION)/pdb.doc
|
|
146
|
+-|/usr/lib/python$(PYTHON_VERSION)/test
|
|
147
|
+-|/usr/lib/python$(PYTHON_VERSION)/webbrowser.py
|
|
148
|
+-|/usr/lib/python$(PYTHON_VERSION)/*/test
|
|
149
|
+-|/usr/lib/python$(PYTHON_VERSION)/*/tests
|
388
|
150
|
endef
|
389
|
151
|
|
390
|
152
|
define PyPackage/python/install
|
|
@@ -393,104 +155,22 @@ define PyPackage/python/install
|
393
|
155
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libpython$(PYTHON_VERSION).so* $(1)/usr/lib/
|
394
|
156
|
endef
|
395
|
157
|
|
396
|
|
-define PyPackage/python-doc/filespec
|
397
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/pydoc_data
|
398
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/pydoc.py
|
399
|
|
-endef
|
400
|
|
-
|
401
|
|
-define PyPackage/python-bzip2/filespec
|
402
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/bz2.so
|
403
|
|
-endef
|
404
|
|
-
|
405
|
|
-define PyPackage/python-expat/filespec
|
406
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/pyexpat.so
|
407
|
|
-endef
|
408
|
|
-
|
409
|
|
-define PyPackage/python-gzip/filespec
|
410
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/gzip.py
|
411
|
|
-endef
|
412
|
|
-
|
413
|
|
-define PyPackage/python-openssl/filespec
|
414
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_ssl.so
|
415
|
|
-endef
|
416
|
|
-
|
417
|
|
-define PyPackage/python-shutil/filespec
|
418
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/shutil.py
|
419
|
|
-endef
|
420
|
|
-
|
421
|
|
-define PyPackage/python-sqlite3/filespec
|
422
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/sqlite3
|
423
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_sqlite3.so
|
424
|
|
-endef
|
425
|
|
-
|
426
|
|
-define PyPackage/python-gdbm/filespec
|
427
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/gdbm.so
|
428
|
|
-endef
|
429
|
|
-
|
430
|
|
-define PyPackage/python-readline/filespec
|
431
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/readline.so
|
432
|
|
-endef
|
433
|
|
-
|
434
|
|
-define PyPackage/python-ncurses/filespec
|
435
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_curses.so
|
436
|
|
-+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_curses_panel.so
|
437
|
|
-endef
|
438
|
|
-
|
439
|
|
-define Host/Configure
|
440
|
|
- -$(MAKE) -C $(HOST_BUILD_DIR) distclean
|
441
|
|
- (cd $(HOST_BUILD_DIR); autoreconf --force --install || exit 0)
|
442
|
|
- (cd $(HOST_BUILD_DIR); \
|
443
|
|
- rm -rf config.cache; \
|
444
|
|
- CONFIG_SITE= \
|
445
|
|
- OPT="$(HOST_CFLAGS)" \
|
446
|
|
- ./configure \
|
447
|
|
- --without-cxx-main \
|
448
|
|
- --without-ensurepip \
|
449
|
|
- --without-pymalloc \
|
450
|
|
- --with-threads \
|
451
|
|
- --prefix=$(STAGING_DIR_HOST); \
|
452
|
|
- )
|
453
|
|
-endef
|
454
|
|
-
|
455
|
|
-define Host/Compile
|
456
|
|
- +$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) \
|
457
|
|
- python Parser/pgen
|
458
|
|
- +$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) \
|
459
|
|
- sharedmods
|
460
|
|
-endef
|
|
158
|
+HOST_CONFIGURE_ARGS+= \
|
|
159
|
+ --without-cxx-main \
|
|
160
|
+ --without-pymalloc \
|
|
161
|
+ --with-threads \
|
|
162
|
+ --prefix=$(STAGING_DIR_HOST)
|
461
|
163
|
|
462
|
164
|
define Host/Install
|
463
|
165
|
$(INSTALL_DIR) $(STAGING_DIR_HOST)/bin/
|
464
|
|
- $(MAKE) -C $(HOST_BUILD_DIR) \
|
465
|
|
- install
|
|
166
|
+ $(MAKE) -C $(HOST_BUILD_DIR) install
|
466
|
167
|
$(INSTALL_BIN) $(HOST_BUILD_DIR)/Parser/pgen $(STAGING_DIR_HOST)/bin/pgen2
|
467
|
168
|
endef
|
468
|
169
|
|
469
|
|
-
|
470
|
170
|
$(eval $(call HostBuild))
|
471
|
171
|
|
472
|
172
|
$(eval $(call PyPackage,python))
|
473
|
173
|
$(eval $(call PyPackage,python-full))
|
474
|
|
-$(eval $(call PyPackage,python-doc))
|
475
|
|
-$(eval $(call PyPackage,python-bzip2))
|
476
|
|
-$(eval $(call PyPackage,python-expat))
|
477
|
|
-$(eval $(call PyPackage,python-gzip))
|
478
|
|
-$(eval $(call PyPackage,python-openssl))
|
479
|
|
-$(eval $(call PyPackage,python-shutil))
|
480
|
|
-$(eval $(call PyPackage,python-sqlite3))
|
481
|
|
-$(eval $(call PyPackage,python-gdbm))
|
482
|
|
-$(eval $(call PyPackage,python-readline))
|
483
|
|
-$(eval $(call PyPackage,python-ncurses))
|
484
|
174
|
|
485
|
175
|
$(eval $(call BuildPackage,python))
|
486
|
176
|
$(eval $(call BuildPackage,python-full))
|
487
|
|
-$(eval $(call BuildPackage,python-doc))
|
488
|
|
-$(eval $(call BuildPackage,python-bzip2))
|
489
|
|
-$(eval $(call BuildPackage,python-expat))
|
490
|
|
-$(eval $(call BuildPackage,python-gzip))
|
491
|
|
-$(eval $(call BuildPackage,python-openssl))
|
492
|
|
-$(eval $(call BuildPackage,python-shutil))
|
493
|
|
-$(eval $(call BuildPackage,python-sqlite3))
|
494
|
|
-$(eval $(call BuildPackage,python-gdbm))
|
495
|
|
-$(eval $(call BuildPackage,python-readline))
|
496
|
|
-$(eval $(call BuildPackage,python-ncurses))
|