summaryrefslogtreecommitdiff
path: root/lang/python/files/python-package.mk
Commit message (Collapse)AuthorAgeFilesLines
* python: simplify/unify default build rules for python packagesAlexandru Ardelean2017-01-041-16/+19
| | | | | | | | | Most python packages use the same build rules & vars. So, adding them in python-package.mk. Also, preparing for using VARIANTs for python/python3 packages. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: move PYTHON_VERSION in own .mk fileAlexandru Ardelean2016-11-071-2/+1
| | | | | | | Allows for more granularity with respect to python-host.mk and python-package.mk inclusions. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: introduce Build/Compile/HostPyRun{Host,Target}Yousong Zhou2016-10-171-6/+16
| | | | Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* python: upgrade to version 2.7.12Alexandru Ardelean2016-09-131-1/+1
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: do not allow packaging of windows exe filesAlexandru Ardelean2016-06-271-2/+2
| | | | | | Thanks to @ryzhovau for reporting. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: use default host build prefix, remove cross-compile workarounds for hostJeffery To2016-03-051-4/+1
| | | | | | | | | | | | | | | 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>
* treewide: use $(STAGING_DIR)/host instead of $(STAGING_DIR_HOST), sync with ↵Felix Fietkau2016-01-201-2/+2
| | | | | | changes in trunk Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* lang/python: Make building additional (non-base) python modules easierDaniel Dickinson2015-12-181-0/+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>
* python: fix HostPython host/target selectionAlexandru Ardelean2015-12-111-2/+0
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: upgrade to version 2.7.11Alexandru Ardelean2015-12-111-1/+1
| | | | | | | 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-111-12/+5
| | | | | | | | 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: fix cross-compiling C++ modules.Attila Lendvai2015-09-281-0/+1
| | | | Signed-off-by: Attila Lendvai <attila@lendvai.name>
* python: upgrade to 2.7.10Alexandru Ardelean2015-05-271-1/+1
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: added configure args for distutils path detectionJan Čermák2015-03-161-0/+7
| | | | | | | | | | | | 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>
* Merge pull request #992 from commodo/python-patch-updatesSteven Barth2015-03-061-0/+3
|\ | | | | python: patch updates
| * python: add '_python_*' env vars to host pythonAlexandru Ardelean2015-03-061-0/+3
| | | | | | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* | python: packetize some python modulesAlexandru Ardelean2015-03-061-1/+1
|/ | | | | | | | | | | | | | 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>
* python: change _PYTHON_HOST_PLATFORM to linux2Alexandru Ardelean2015-01-111-1/+1
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* Merge pull request #744 from commodo/python-upg-2.7.9Steven Barth2015-01-061-1/+1
|\ | | | | python: upgrade to version 2.7.9
| * python: upgrade to version 2.7.9Alexandru Ardelean2015-01-061-1/+1
| | | | | | | | | | | | | | 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-061-0/+9
| | | | | | | | | | | | 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-061-0/+1
| | | | | | | | | | | | | | 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-061-2/+1
|/ | | | | | | | | | | 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: add $(PKG_INSTALL_DIR)/$(PYTHON_PKG_DIR) to PYTHONPATHAlexandru Ardelean2014-12-091-0/+2
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: add __PYENV_LAUNCHER__ env varAlexandru Ardelean2014-11-091-0/+1
| | | | | | Mostly useful for setuptools and pip during build. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: add PKG_USE_MIPS16:=0 + handle CONFIG_USE_MIPS16Alexandru Ardelean2014-11-071-0/+7
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: add PYTHONPATH var; this allows packages to configure itAlexandru Ardelean2014-11-071-1/+2
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: add HOST_PYTHON_LIB_DIR variable to python-package.mkAlexandru Ardelean2014-11-071-0/+1
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python, python3: fix python*-package.mkNicolas Thill2014-10-231-1/+1
| | | | | | Replace calls to getvar function recently removed Signed-off-by: Nicolas Thill <nico@openwrt.org>
* python: add _PYTHON_HOST_PLATFORM env var when cross-compiling C extensionsAlexandru Ardelean2014-10-191-0/+1
| | | | | | | 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: add LD and LDSHARED env vars to Build/Compile/PyModAlexandru Ardelean2014-10-191-1/+3
| | | | | | 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-191-1/+1
| | | | | | | 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: export CC + CCSHARED env vars to cross-compile Python C extensions ↵Alexandru Ardelean2014-10-191-0/+2
| | | | | | properly Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: enforce the existence of files in the filespecsAlexandru Ardelean2014-10-171-0/+4
| | | | | | | | 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>
* python: reduce bloat by removing *.pyo and *.pyc filesAlexandru Ardelean2014-10-171-0/+1
| | | | | | | Seems that if you add a package folder this would also include the compiled python files which increases fw size. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: upgrade to version 2.7.8Alexandru Ardelean2014-10-151-2/+2
|
* python: enforce version assignmentAlexandru Ardelean2014-10-151-2/+2
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: move python package versioning to python-package.mkAlexandru Ardelean2014-10-151-0/+1
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: add old python 2 package backAlexandru Ardelean2014-10-151-0/+77
| | | | | | | | | | | | | | According to PEP394 (http://legacy.python.org/dev/peps/pep-0394/) the 'python' command should refer to 'python2'. In our case, this means we should reboot the old python package. We could rename the package name to python2, but that would just complicate things a bit with other packages, and since we're doing this reboot, such a complication would be unnecessary. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* rename folder to python3Agent 422014-10-131-78/+0
|
* python: upgrade to version 3.4.1Alexandru Ardelean2014-10-061-1/+2
| | | | | | | | | | | | | | | | | | | | | | Some notes: - Python 3 (at least version 3.4) is pretty cross-compiler-friendly, so a lot of patches were thrown away. - Arguments below were moved to ./files/config.site file, and disabled ac_cv_have_chflags=no \ ac_cv_have_lchflags=no \ ac_cv_py_format_size_t=no \ ac_cv_have_long_long_format=yes \ ac_cv_buggy_getaddrinfo=no \ - --without-ensurepip added, because the build wants to ensure that it works; that's a good idea, but for now, it requires special setup, and we can do that later - --without-pymalloc added, becase in Python 3, modules are suffixed with m; e.g. so some paths are python3.4m instead of python3.4 all this is detailed here: http://legacy.python.org/dev/peps/pep-3149/ Maybe it will be a good idea to re-add this back Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: update copyright & maintainerAlexandru Ardelean2014-10-061-1/+1
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: import package as-is from old packagesAlexandru Ardelean2014-10-061-0/+77
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>