aboutsummaryrefslogtreecommitdiff
path: root/lang/python
Commit message (Collapse)AuthorAge
* python: do not prefer ncursesw over ncursesAlexandru Ardelean2015-04-21
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: replace with libncursesw with libncursesAlexandru Ardelean2015-04-21
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: added configure args for distutils path detectionJan Čermák2015-03-16
| | | | | | | | | | | | python-package.mk now defines (extends) CONFIGURE_ARGS that are adjusting PREFIX and EXEC_PREFIX in distutils.sysconfig during compilation. These variables are sometimes used by autotools to detect path to Python header files. Adding these variables to python-package.mk fixes compilation of legacy autotools-configured packages that already include python-package.mk and do not overwrite CONFIGURE_ARGS. Signed-off-by: Jan Čermák <jan.cermak@nic.cz> Cc: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: refine packaging and split more modules into packagesAlexandru Ardelean2015-03-13
| | | | | | | | | | | | | Rule of thumb is: any Python file that is greater than 100kb (or adds a dependency with which it adds more than 100 kb) should be a pretty useful/commonly used lib to stay in `python-light`. An example, is the Python IO lib, which summarized (Python source + binary module) is over 200kb. Also moved some files that should have been put into previously existing packages before, and re-organized the packages a bit. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: fix conflicts between python-light & python-baseAlexandru Ardelean2015-03-12
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: revert previous patch and add a filespecAlexandru Ardelean2015-03-11
| | | | | | | | | Seems removing the PyPackage rule and/or adding dummy install rule causes some issues inside the build-system, where the libpython2.7.so.1.0 is not seen by packages that depend on python. Even though that libpython2.7.so.1.0 file is installed properly by `python-base`. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: remove PyPackage rules for python packageAlexandru Ardelean2015-03-09
| | | | | | | | | | | Calling `PyPackage` will install some default install rules for python packages that are not required for the `python` package specifically are not required. That will lead to some conflicts with `python-light` because the `/usr/lib/python2.7/site-packages` folder (+contents) will be available in both packages. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: add patches to disable runtime lib dirsAlexandru Ardelean2015-03-08
| | | | | | | | | | | | | When cross-compiling, we do not need to add runtime lib dirs. Also, the cross compilers that are used on OpenWRT do not support the '-R' option, which causes build failures. These build failures existed before, but were not noticed, because it fails only on some setups. This is because Python's `setup.py` does a lot of voo-doo automagic that needs handling for some cross-compilation cases. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* Merge pull request #992 from commodo/python-patch-updatesSteven Barth2015-03-06
|\ | | | | python: patch updates
| * python: add '_python_*' env vars to host pythonAlexandru Ardelean2015-03-06
| | | | | | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
| * python: add patch for distutils to add support for the '_python_sysroot' env varAlexandru Ardelean2015-03-06
| | | | | | | | | | | | | | Patch taken from buildroot: http://git.buildroot.net/buildroot/tree/package/python/python-008-distutils-use-python-sysroot.patch Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
| * python: re-number patchesAlexandru Ardelean2015-03-06
| | | | | | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* | python: packetize some python modulesAlexandru Ardelean2015-03-06
|/ | | | | | | | | | | | | | Packetize some Python modules to reduce size of the overall Python package. Basically, a new package is introduced, call `python-light`, and everything that's extra (or big) is put in other packages. The `python` package becomes a metapackage that installs `python-light` along with the rest of the packages. Base work started by Jan Čermák. Signed-off-by: Jan Čermák <jan.cermak@nic.cz> Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* 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>