Commit Graph

27 Commits

Author SHA1 Message Date
Alexandru Ardelean 8c057f39d8 python3: update using python updates as template
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2015-01-19 20:22:41 +02:00
Alexandru Ardelean 9e639dbf87 python3: add $(PKG_INSTALL_DIR)/$(PYTHON3_PKG_DIR) to PYTHON3PATH
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-12-09 14:17:56 +02:00
Alexandru Ardelean 48aaf18057 python3: disable Python3 bytecode generation by default
Same as python.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-12-09 14:16:03 +02:00
Alexandru Ardelean ec10e7e2e4 python3 upgrade to version 3.4.2
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-11-28 21:15:20 +02:00
Alexandru Ardelean 84cf76e7a6 python3: sync build rules with python's
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-11-27 23:47:28 +02:00
Nicolas Thill 6243f35724 python3: create ./usr/bin directory at package/install
Signed-off-by: Nicolas Thill <nico@openwrt.org>
2014-10-24 16:32:29 +02:00
Nicolas Thill cad9bdbc85 python, python3: fix python*-package.mk
Replace calls to getvar function recently removed

Signed-off-by: Nicolas Thill <nico@openwrt.org>
2014-10-23 22:57:02 +02:00
Alexandru Ardelean 056e565ab6 python3: add _PYTHON_HOST_PLATFORM env var when cross-compiling C extensions
This mostly helps to avoid confusion when modules are cross-compiled.
Otherwise build folders are named with the host's platform name.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-10-20 20:04:55 +03:00
Alexandru Ardelean 1a0e9b3786 python3: enable shared python3 lib; make this the norm
This will reduce the bloat when users will want to compile in their
Python C extensions.
There will be a initial bloat (several kb) if just Python
is installed, but that will be compensated when users will add more
C extensions.

During the build we also have to add Python's PKG_BUILD_DIR
so that the shared lib is found when compiling Python's
built-in C extensions.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-10-20 20:04:54 +03:00
Alexandru Ardelean cc6423d57a python3: add LD and LDSHARED env vars to Build/Compile/Py3Mod
Tells the host Python to use the target's linker.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-10-20 19:13:32 +03:00
Alexandru Ardelean 3edeed3f4d python3: add PYTHON3_INC_DIR var to CPPFLAGS
The target's PYTHON3_INC_DIR should take precedence over the host's
include dir when cross-compiling.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-10-20 19:13:32 +03:00
Alexandru Ardelean f729ba98c5 python3: export CC + CCSHARED env vars to cross-compile Python C extensions properly
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-10-20 19:13:28 +03:00
Alexandru Ardelean 5bf4866fd9 python3: add patch to disable package compiles/tests during cross-builts
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-10-20 18:13:13 +03:00
Alexandru Ardelean e0abcb569b python: add ac_cv_buggy_getaddrinfo=no to config.site file
Required when IPv6 support gets enabled.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-10-20 18:09:57 +03:00
Alexandru Ardelean 8c4da0367b python3: patch setup.py so that it does not include system include dirs
Seems that the Python C extensions were being
(or at least trying to be) build using '/usr/include' as the first
include folder.

Seems this issue was already fixed on MacOS X and now we've extended
it for our case.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-10-20 18:08:55 +03:00
Alexandru Ardelean 885fe99cd2 python3: enforce the existence of files in the filespecs
Seems that this allows some goofs, because some files
silently do not get copied and the build succeeds, even though
it shouldn't.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-10-20 18:05:03 +03:00
Alexandru Ardelean a1fe8c48aa python3: reduce bloat by removing *.pyo and *.pyc files
Seems that if you add a package folder this would also
include the compiled python3 files which increases fw size.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-10-20 18:04:12 +03:00
Alexandru Ardelean 5cb802cac4 python3: fix python host path 2014-10-15 09:13:24 +03:00
Alexandru Ardelean a964feec68 python3: add python3 symlink to python exec as per PEP394 2014-10-15 09:13:24 +03:00
Alexandru Ardelean 72092dabf2 python3: suffix vars with 3 2014-10-15 09:12:41 +03:00
Alexandru Ardelean e4d94961c3 python3: include python*-package.mk irespective of DUMP env var
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-10-15 09:11:00 +03:00
Alexandru Ardelean dee4a69cea python3: enforce version assignment
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-10-15 09:10:29 +03:00
Alexandru Ardelean 9500f50f2b python3: avoid making python3 the default python command
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-10-15 09:08:09 +03:00
Alexandru Ardelean d5d9442928 python3: fixup python-package.mk include
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-10-15 09:08:06 +03:00
Agent 42 d4bc92fad5 renaming python-package.mk to python3-package.mk 2014-10-13 22:58:43 +02:00
Agent 42 1e6a88dde0 rename package name to python3 2014-10-13 12:21:16 +02:00
Agent 42 5e3393cf94 rename folder to python3 2014-10-13 12:20:34 +02:00