aboutsummaryrefslogtreecommitdiff
path: root/lang/python
Commit message (Collapse)AuthorAge
* python: revert $(STAGING_DIR)/host to $(STAGING_DIR)/host changeAlexandru Ardelean2016-04-15
| | | | | | | | | Also, override all prefix args in the HOST_CONFIGURE_ARGS so that this works fine on CC/15.05. There are some changes in core regarding package builds that require this. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: change $(STAGING_DIR)/host to $(STAGING_DIR_HOST)Alexandru Ardelean2016-04-14
| | | | | | | | | | It seems that this can become an issue. Found when building python3-setuptools from packages/trunk in openwrt/15.05. python3-setuptools is not in packages/for-15.05 Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: bump PKG_RELEASEHannu Nyman2016-03-15
| | | | | | Bump PKG_RELEASE of python 2.7.11 after the recent fixes. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
* python: add rpath for host Python extension modulesJeffery To2016-03-13
| | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* Merge pull request #2463 from jefferyto/host-python-with-system-ffiHannu Nyman2016-03-06
|\ | | | | python: use external libffi for host python
| * python: use external libffi for host pythonJeffery To2016-03-06
| | | | | | | | | | | | | | This will ensure that ctypes will use the same version of libffi as other packages, e.g. python-cffi. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* | python: use default host build prefix, remove cross-compile workarounds for hostJeffery To2016-03-05
|/ | | | | | | | | | | | | | | The sets host Python's prefix and exec-prefix to the same value ($(STAGING_DIR)/host for packages, as currently defined in include/host-build.mk), which avoids the case where pyconfig.h is not in the same location as Python's other header files (see https://bugs.python.org/issue896330). This also removes some cross compilation workarounds (_python_sysroot/prefix/exec_prefix, disabling byte-compilation, __PYVENV_LAUNCHER__) that are not necessary when compiling packages for host. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* python: fix HOST_PYTHON_INC_DIR pathJeffery To2016-02-14
| | | | | | | Host python moved in c5564133, this updates HOST_PYTHON_INC_DIR to match. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* treewide: use $(STAGING_DIR)/host instead of $(STAGING_DIR_HOST), sync with ↵Felix Fietkau2016-01-20
| | | | | | changes in trunk Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* python: fixed _python_sysroot pathsJeffery To2015-12-31
| | | | | | | | AFAIK sysroot is combined with prefix/exec_prefix, so sysroot shouldn't include "/usr". (cf. the HostPython function in older versions of python-package.mk) Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* lang/python: Make building additional (non-base) python modules easierDaniel Dickinson2015-12-18
| | | | | | | This adds code to make it easier to build third-party python modules such as ones from PyPi. Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com>
* Merge pull request #2092 from cshore/pull-request-python-system-expatHannu Nyman2015-12-16
|\ | | | | lang/python: Depend on system expat
| * lang/python: Depend on system expatDaniel Dickinson2015-12-09
| | | | | | | | Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com>
* | python: bump PKG_RELEASEHannu Nyman2015-12-13
| | | | | | | | | | | | | | Bump PKG_RELEASE of python 2.7.11 as there have been several fixes since the initial release. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
* | python2: fix typo in HostPython functionAlexandru Ardelean2015-12-13
| | | | | | | | | | | | I call this the curse of the End-Of-The-Year for me. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* | python: fix HostPython againAlexandru Ardelean2015-12-12
| | | | | | | | | | | | Tested on python-setuptools. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* | python: fix HostPython host/target selectionAlexandru Ardelean2015-12-11
| | | | | | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* | python: fix upgrade 2.7.11 goofAlexandru Ardelean2015-12-11
| | | | | | | | | | | | | | | | Seems those pkgconfig file paths were revealed to be incorrect after doing a full clean build. And I only had to inspiration to do one after doing the initial PR. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* | python: upgrade to version 2.7.11Alexandru Ardelean2015-12-11
| | | | | | | | | | | | | | And split python-dev and python-lib2to3 packages. Seems for python3 this was done, so we'll sync here. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* | python: unify HostPython and HostHostPython functionsAlexandru Ardelean2015-12-11
| | | | | | | | | | | | | | | | That means basically moving the host Python from $(STAGING_DIR_HOST) to $(STAGING_DIR_HOST)/usr and making the PYTHONPATH var as an argument. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* | python: remove newline function; it's also in OpenWRT coreAlexandru Ardelean2015-12-11
|/ | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* Merge pull request #1984 from jefferyto/host-python-packageSteven Barth2015-11-24
|\ | | | | python: add capability to install python packages for the host
| * python: add capability to install python packages for the hostJeffery To2015-11-24
| | | | | | | | | | | | | | | | | | | | | | | | Some python packages (e.g. cffi) compile one or more shared libraries as part of their setup process. When these packages are setup dependencies of other packages (e.g. cryptography), these packages (and their shared libraries) will need to be loaded on the host system. This adds a makefile, similar to python-package.mk, to simplify installing python packages on the host. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* | python: add missing host build dependency on expat/hostJan Čermák2015-11-23
|/ | | | | | | | | Since 94f87dc1, host build of Python depends on expat installed in host staging directory. However, pyexpat extension fails to build if expat was not built and installed to staging dir before - adding host build dependency should fix this. Signed-off-by: Jan Čermák <jan.cermak@nic.cz>
* python: fix two build depend issuesJo-Philipp Wich2015-10-23
| | | | | | | | | | | | Build depends must refer to the source package name, not the binary one, therefore we need to use `bzip2` in order to enforce a build of libbz2.so. Also make the host python build depend on the bzip2 host build in order to ensure that host python is built with bzip2 support. We don't need a build dependency for the target python as this already depends on +libbz2 through python-light. That package dependency in turn implies a build dependency. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
* python: fix cross-compiling C++ modules.Attila Lendvai2015-09-28
| | | | Signed-off-by: Attila Lendvai <attila@lendvai.name>
* python: add dependency to bz2 host buildJohn Crispin2015-08-22
| | | | Signed-off-by: John Crispin <blogic@openwrt.org>
* python: add correct host expatSteven Barth2015-08-03
| | | | Signed-off-by: Steven Barth <steven@midlink.org>
* python: fix patch removing multiarch support for host pythonJan Čermák2015-07-02
| | | | | | | | | | Patch removing multiarch paths from build should be applied only when Python is built for target, but not for host. When the paths are removed during host build, host python throws some ugly errors when importing some hashlib modules. Also it reports that modules crypt and nis failed to build (tested on Ubuntu 14.04 host). Signed-off-by: Jan Čermák <jan.cermak@nic.cz>
* python: upgrade to 2.7.10Alexandru Ardelean2015-05-27
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* 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>