1comment "python3 needs a toolchain w/ wchar, threads, dynamic library"
2	depends on BR2_USE_MMU
3	depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
4
5config BR2_PACKAGE_PYTHON3
6	bool "python3"
7	depends on BR2_USE_WCHAR
8	# uses fork()
9	depends on BR2_USE_MMU
10	depends on BR2_TOOLCHAIN_HAS_THREADS # libffi
11	depends on !BR2_STATIC_LIBS
12	select BR2_PACKAGE_LIBFFI
13	select BR2_PACKAGE_BLUEZ5_UTILS_HEADERS if BR2_PACKAGE_BLUEZ5_UTILS
14	help
15	  The python language interpreter.
16
17	  http://www.python.org/
18
19if BR2_PACKAGE_PYTHON3
20
21choice
22	prompt "python3 module format to install"
23	default BR2_PACKAGE_PYTHON3_PYC_ONLY
24	help
25	  Select Python module format to install on target (py, pyc or
26	  both)
27
28config BR2_PACKAGE_PYTHON3_PY_ONLY
29	bool ".py sources only"
30
31config BR2_PACKAGE_PYTHON3_PYC_ONLY
32	bool ".pyc compiled sources only"
33
34config BR2_PACKAGE_PYTHON3_PY_PYC
35	bool ".py sources and .pyc compiled"
36
37endchoice
38
39menu "core python3 modules"
40
41comment "The following modules are unusual or require extra libraries"
42
43config BR2_PACKAGE_PYTHON3_2TO3
44	bool "2to3 module"
45	help
46	  code translation from python 2 to 3
47
48config BR2_PACKAGE_PYTHON3_BERKELEYDB
49	bool "berkeleydb"
50	select BR2_PACKAGE_BERKELEYDB
51	select BR2_PACKAGE_BERKELEYDB_DBM
52	help
53	  berkeleydb module for Python3
54
55config BR2_PACKAGE_PYTHON3_BZIP2
56	bool "bz2 module"
57	select BR2_PACKAGE_BZIP2
58	help
59	  bzip2 module for Python3
60
61config BR2_PACKAGE_PYTHON3_CODECSCJK
62	bool "codecscjk module"
63	help
64	  Chinese/Japanese/Korean codecs module for Python (large).
65
66config BR2_PACKAGE_PYTHON3_CURSES
67	bool "curses module"
68	select BR2_PACKAGE_NCURSES
69	help
70	  curses module for Python3.
71
72config BR2_PACKAGE_PYTHON3_DECIMAL
73	bool "decimal module"
74	select BR2_PACKAGE_MPDECIMAL
75	help
76	  decimal module for Python3.
77
78config BR2_PACKAGE_PYTHON3_OSSAUDIODEV
79	bool "ossaudiodev module"
80	help
81	  ossaudiodev module for Python3.
82
83config BR2_PACKAGE_PYTHON3_READLINE
84	bool "readline"
85	select BR2_PACKAGE_READLINE
86	help
87	  readline module for Python3 (required for command-line
88	  editing in the Python shell).
89
90config BR2_PACKAGE_PYTHON3_SSL
91	bool "ssl"
92	select BR2_PACKAGE_OPENSSL
93	select BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL
94	select BR2_PACKAGE_LIBOPENSSL_ENABLE_BLAKE2
95	help
96	  _ssl module for Python3 (required for https in urllib etc).
97
98config BR2_PACKAGE_PYTHON3_UNICODEDATA
99	bool "unicodedata module"
100	default y
101	help
102	  Unicode character database (used by stringprep module)
103	  (large).
104
105config BR2_PACKAGE_PYTHON3_SQLITE
106	bool "sqlite module"
107	select BR2_PACKAGE_SQLITE
108	help
109	  SQLite database support
110
111config BR2_PACKAGE_PYTHON3_PYEXPAT
112	bool "xml module"
113	select BR2_PACKAGE_EXPAT
114	help
115	  pyexpat and xml libraries for Python3.
116
117config BR2_PACKAGE_PYTHON3_XZ
118	bool "xz module"
119	select BR2_PACKAGE_XZ
120	help
121	  xz (a.k.a lzma) module for Python3
122
123config BR2_PACKAGE_PYTHON3_ZLIB
124	bool "zlib module"
125	select BR2_PACKAGE_ZLIB
126	help
127	  zlib support in Python3
128
129endmenu
130
131endif
132