aboutsummaryrefslogtreecommitdiff
path: root/lang/python
Commit message (Collapse)AuthorAge
* Merge pull request #962 from sairon/python-fix-distutils-adjusting-pathSteven Barth2015-03-02
|\ | | | | python: patch distutils adjusting path in scripts' shebang
| * python: patch distutils adjusting path in scripts' shebangJan Čermák2015-02-27
| | | | | | | | | | | | | | | | | | When distutils are copying scripts, path to Python interpreter is adjusted. This does not work well in OpenWrt buildroot, because the path is adjusted to absolute path to host Python then. This patch simply disables the adjusting of the path. Signed-off-by: Jan Čermák <jan.cermak@nic.cz>
* | python: reduce size of patch 130Alexandru Ardelean2015-02-27
|/ | | | | | | | | | Try to reduce the amount of change in this patch, since it removes a lot of stuff, when we could just 'ifdef' that stuff out, with 2 lines. The buildroot project does something similar like this: http://git.buildroot.net/buildroot/tree/package/python/005-pyc-pyo-conditional.patch Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: removed ensurepip moduleJan Čermák2015-02-24
| | | | | | | | | | This module is not necessary in OpenWrt because the functionality it provides (i.e. installation of setuptools and PIP) is ensured by python-pip and python-setuptools packages. See: https://docs.python.org/2.7/library/ensurepip.html Signed-off-by: Jan Čermák <jan.cermak@nic.cz>
* Revert "python: add patch to abort build on failed module build"Steven Barth2015-02-20
|
* python: add patch to abort build on failed module buildAlexandru Ardelean2015-02-19
| | | | | | | Taken from buildroot: http://git.buildroot.net/buildroot/plain/package/python/014-abort-on-failed-modules.patch Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: add ncurses(w) include folders for host pythonAlexandru Ardelean2015-02-11
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: fix goofAlexandru Ardelean2015-01-20
| | | | | | This should have gone in python3. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python3: update using python updates as templateAlexandru Ardelean2015-01-19
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: add patch to remove Debian/Ubuntu multiarch supportAlexandru Ardelean2015-01-15
| | | | | | | Seems when cross compiling on x86_64 Debian (most likely Ubuntu too) the host's paths will be added too causing build failures for some extensions. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: Install .pc files from Python package.Szilárd Pfeiffer2015-01-11
| | | | | Signed-off-by: Szilárd Pfeiffer <coroner@pfeifferszilard.hu> Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: add patch to fix _ctypes build on certain X86_64 hostsAlexandru Ardelean2015-01-11
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: remove libffi/host; we're not using itAlexandru Ardelean2015-01-11
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: enable pip installation of pip on the host-sideAlexandru Ardelean2015-01-11
| | | | | | | | Python packs some pip installation script during the build, which looks like a better idea to use for the python-pip and/or python-setuptools packages. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: change _PYTHON_HOST_PLATFORM to linux2Alexandru Ardelean2015-01-11
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* Merge pull request #744 from commodo/python-upg-2.7.9Steven Barth2015-01-06
|\ | | | | python: upgrade to version 2.7.9
| * python: upgrade to version 2.7.9Alexandru Ardelean2015-01-06
| | | | | | | | | | | | | | Release notes here: https://www.python.org/downloads/release/python-279/ Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* | python: add default PyPackage/filespec if not definedAlexandru Ardelean2015-01-06
| | | | | | | | | | | | Most packages will install in /usr/lib/python$(PYTHON_VERSION)/site-packages Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* | python: trim all whitespaces for the operator in the filespecAlexandru Ardelean2015-01-06
| | | | | | | | | | | | | | That would allow for files (in filespecs) to be indented. As it is now, the files need to be added at the begginning of the line. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* | python: whitespace fix for PYTHONPATHXuefer2015-01-06
|/ | | | | | | | | | | Seems that using += adds a space in the PYTHONPATH. Could be some other error, but at least this way it's sure to not leave any spaces. Thanks @Xuefer. Signed-off-by: Xuefer Tinys <xuefer@gmail.com> Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: fix file conflict between python and python-base packagesGergely Kiss2014-12-15
| | | | | Signed-off-by: Gergely Kiss <mail.gery@gmail.com> Tested-by: Gergely Kiss <mail.gery@gmail.com>
* python: add $(PKG_INSTALL_DIR)/$(PYTHON_PKG_DIR) to PYTHONPATHAlexandru Ardelean2014-12-09
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: use Build/Prepare rule for the config.site fileAlexandru Ardelean2014-11-26
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: add patch to disable python byte codes by defaultAlexandru Ardelean2014-11-16
| | | | | | Use export PYTHONDONTWRITEBYTECODE=0 to re-enable writing byte codes. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: add distutils back (selectively)Alexandru Ardelean2014-11-12
| | | | | | This patch reduces distutils from 1.7 MB to 0.7 MB. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: update MAKE_FLAGSAlexandru Ardelean2014-11-12
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: add __PYENV_LAUNCHER__ env varAlexandru Ardelean2014-11-09
| | | | | | Mostly useful for setuptools and pip during build. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: remove readline.so for nowAlexandru Ardelean2014-11-09
| | | | | | | | Some symbols are not found (tgetnum and BC). Looks like the termcap lib, which should be in libncurses(w) but maybe some build param would be required. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: add some Build/InstallDev rules backAlexandru Ardelean2014-11-09
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: add OPT and CONFIG_SITE vars to HOST_CONFIGURE_ARGSAlexandru Ardelean2014-11-09
| | | | | | Fixes some build issues. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: add lib depsAlexandru Ardelean2014-11-09
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: final switchAlexandru Ardelean2014-11-09
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: exclude pdb.doc and webbrowser.pyAlexandru Ardelean2014-11-07
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: remove +libcrypto dep; that's a openssl libAlexandru Ardelean2014-11-07
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex.com>
* python: add PKG_USE_MIPS16:=0 + handle CONFIG_USE_MIPS16Alexandru Ardelean2014-11-07
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: add PYTHONPATH var; this allows packages to configure itAlexandru Ardelean2014-11-07
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: add HOST_PYTHON_LIB_DIR variable to python-package.mkAlexandru Ardelean2014-11-07
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: cleanup Build/InstallDev ruleAlexandru Ardelean2014-11-07
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: remove --without-ensurepip; not needed anymoreAlexandru Ardelean2014-11-07
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: remove explicit rules in favor of using make/configure varsAlexandru Ardelean2014-11-07
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: reboot all python packagesAlexandru Ardelean2014-11-07
| | | | | | | Redefine python-full as all-pages-minus-a-few-that-don't make sense. Remove all other packages. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: add _sysconfigdata.py to python base packageAlexandru Ardelean2014-10-25
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python, python3: fix python*-package.mkNicolas Thill2014-10-23
| | | | | | Replace calls to getvar function recently removed Signed-off-by: Nicolas Thill <nico@openwrt.org>
* python: fix source folder for libpythonAlexandru Ardelean2014-10-20
| | | | | | | | | | | This fix is quite critical since it fixes copying the libpython shared lib. The previous source folder we've used is ok, it has the shared lib, but libpython2.7.so is not a symlink of libpython2.7.so.1.0, but rather a copy of it. Which means that libpython2.7.so takes twice as much space on the target's flash. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: use libncursesw instead of libncursesAlexandru Ardelean2014-10-19
| | | | | | | | | | | | | Python's build scripts prefer ncursesw, and if it is detected it will be used. The problem will occur when linking, since ncursesw libs may not be installed if not added as deps, but the sources will be compiled against ncursesw. Reference from Python's HISTORY file: Patch #1428494: Prefer linking against ncursesw over ncurses library. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: add _PYTHON_HOST_PLATFORM env var when cross-compiling C extensionsAlexandru Ardelean2014-10-19
| | | | | | | 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>
* python: enable shared python lib; make this the normAlexandru Ardelean2014-10-19
| | | | | | | | | | | | | | 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>
* python: add LD and LDSHARED env vars to Build/Compile/PyModAlexandru Ardelean2014-10-19
| | | | | | Tells the host Python to use the target's linker. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: add PYTHON_INC_DIR var to CPPFLAGSAlexandru Ardelean2014-10-19
| | | | | | | The target's PYTHON_INC_DIR should take precedence over the host's include dir when cross-compiling. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: do not install pyconfig.h on the targetAlexandru Ardelean2014-10-19
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>