summaryrefslogtreecommitdiff
path: root/lang/python/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* python: declare explicit Host/Compile to fix pgen tool installation errorArturo Rinaldi2017-12-121-1/+5
| | | | | | Signed-off-by: Arturo Rinaldi arty.net2@gmail.com [squash commits, fix commit title] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* python: update to version 2.7.14 for branch 17.01Alexandru Ardelean2017-12-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Bump version and overwrite patches from master, since those were refreshed (at some point). I got an email notification about some CVEs for branch 17.01, so I decided to update Python. Technically, one seems to be for SolidWorks from what I can tell, but upgrading should be easy. ``` Hello Alexandru Ardelean, The package python is vulnerable to the following CVEs: CVE-2014-4616 https://nvd.nist.gov/vuln/detail/CVE-2014-4616 CVE-2017-100015 https://nvd.nist.gov/vuln/detail/CVE-2017-100015 Please consider updating or patching the package. ``` Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: remove setupterm() redefinitionAlexandru Ardelean2017-02-201-1/+1
| | | | | | | It's not 100% aligned with the ncurses' definition. Reported-by: Arturo Rinaldi <arturo@arduino.org> Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: bump PKG_RELEASE to 3Alexandru Ardelean2017-01-111-1/+1
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: use built-in libffi lib for host buildAlexandru Ardelean2017-01-111-2/+2
| | | | | | | | | | | Python comes with it's own builtin libffi lib, which seems easier to use for the host build, than trying to use the one from the package feeds. Also, dropping `005-fix-libffi-x86-64-configure.patch` Not needed anymore. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: link with static libs of ssl, crypto for host buildsAlexandru Ardelean2017-01-111-0/+3
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* Revert "python: don't use libressl for host build"Alexandru Ardelean2017-01-111-1/+1
| | | | This reverts commit ca800e60b040a2b409801560dc16dbcac6cba2b1.
* python: drop CFLAGS in HOST_CONFIGURE_ARGS ; it's already in HOST_CONFIGURE_VARSAlexandru Ardelean2017-01-111-2/+1
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: don't use libressl for host buildAlexandru Ardelean2017-01-061-1/+1
| | | | | | | | | | | | | | | | | Fixes: https://github.com/openwrt/packages/issues/3767 Since commit: https://github.com/lede-project/source/commit/f6e6341d896adb78f9b496f71aab8f45e1742d5a libressl is built on the host-side. Python picks it up [ via the openssl/* headers ] and assumes it has SSL libs. Compiling works fine, linking fails. Doesn't look like it's because: https://github.com/lede-project/source/commit/2fd5ce9488d11c7e6eee7dc30f128bd12be889f5 Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: upgrade to version 2.7.13Alexandru Ardelean2017-01-041-2/+3
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: update PYTHON_FOR_BUILD (based on python3)Alexandru Ardelean2017-01-041-0/+8
| | | | | | | | | PYTHON_FOR_BUILD is used to build the target python. Nomally Python scripts detect fine the Python host interpreter to use for building the Python target interpreter. But, let's not leave it up to chance anymore. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: remove argument for `--with-system-ffi` configure arg (based on python3)Alexandru Ardelean2017-01-041-2/+2
| | | | | | | | | | And apparently `--with-system-ffi` does not take any arguments. But it's only in Python 3.6 that a check was added for that. After checking, Python 2.7 does not take any args either for `--with-system-ffi` ; so, remove it [for the case when this change may get backported]. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: move includes after common package variablesJo-Philipp Wich2016-12-161-6/+6
| | | | | | | | | | | | | | | | | | | | | | Move the python-host.mk and python-package.mk includes after the definition of common package variables. This is required to ensure that PKG_UNPACK is not set to to the dummy "true" command which happens if PKG_SOURCE is not yet set. Fixes the following error observed while attempting to build Python on a recent LEDE version: make[2]: Entering directory '.../lang/python' true [ ! -d ./src/ ] || cp -fpR ./src/* .../Python-2.7.12 Applying ./patches/001-enable-zlib.patch using plaintext: can't find file to patch at input line 14 Perhaps you used the wrong -p or --strip option? [...] Patch failed! Please fix ./patches/001-enable-zlib.patch! Makefile:242: recipe for target '.../Python-2.7.12/.prepared_...' failed Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* python, python3: unify HOST_ vars and get rid of HOST_CFLAGSAlexandru Ardelean2016-11-071-13/+10
| | | | | | | --sysconfigdir and --sbindir are obtained from --prefix and --exec-prefix, so no need to have them explicitly Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python,python3: get rid of HOST_CFLAGSAlexandru Ardelean2016-11-071-4/+0
| | | | | | | | They rely on system paths and are a bit misleading/confusing. As seen here: https://github.com/openwrt/packages/issues/3339 Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: move PYTHON_VERSION in own .mk fileAlexandru Ardelean2016-11-071-1/+5
| | | | | | | Allows for more granularity with respect to python-host.mk and python-package.mk inclusions. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: add include guard for python-host.mk and include in MakefileAlexandru Ardelean2016-11-071-0/+3
| | | | | | | | | | | | | | | So that it can be included twice. python-package.mk include python-host.mk, but at some point in time python-host.mk is not exported to staging_dir yet. So, to have in python's Makefile, we need to include it in the Makefile, and to prevent double inclusion (if python-host.mk is exported from a previous build), the include guard is added. Also, moved the includes after some vars were set. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python, python-*: use default prefix for host installMatthias Schiffer2016-10-041-13/+13
| | | | | | Also fixes a few incorrect "$(STAGING_DIR_HOST)/host" paths. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* python: disable with-ensurepip option for host buildAlexandru Ardelean2016-09-211-2/+1
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: upgrade to version 2.7.12Alexandru Ardelean2016-09-131-2/+2
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: do not allow packaging of windows exe filesAlexandru Ardelean2016-06-271-1/+1
| | | | | | Thanks to @ryzhovau for reporting. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: revert $(STAGING_DIR)/host to $(STAGING_DIR)/host changeAlexandru Ardelean2016-04-151-9/+14
| | | | | | | | | 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-141-9/+9
| | | | | | | | | | 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-151-1/+1
| | | | | | Bump PKG_RELEASE of python 2.7.11 after the recent fixes. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
* Merge pull request #2463 from jefferyto/host-python-with-system-ffiHannu Nyman2016-03-061-1/+2
|\ | | | | python: use external libffi for host python
| * python: use external libffi for host pythonJeffery To2016-03-061-1/+2
| | | | | | | | | | | | | | 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-051-4/+3
|/ | | | | | | | | | | | | | | 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-141-1/+1
| | | | | | | 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-201-8/+8
| | | | | | changes in trunk Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* python: fixed _python_sysroot pathsJeffery To2015-12-311-1/+1
| | | | | | | | 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>
* python: bump PKG_RELEASEHannu Nyman2015-12-131-1/+1
| | | | | | | 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>
* python: fix upgrade 2.7.11 goofAlexandru Ardelean2015-12-111-3/+3
| | | | | | | | 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-111-7/+9
| | | | | | | 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-5/+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: remove newline function; it's also in OpenWRT coreAlexandru Ardelean2015-12-111-6/+0
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* Merge pull request #1984 from jefferyto/host-python-packageSteven Barth2015-11-241-1/+4
|\ | | | | python: add capability to install python packages for the host
| * python: add capability to install python packages for the hostJeffery To2015-11-241-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | 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-231-1/+1
|/ | | | | | | | | 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-231-1/+2
| | | | | | | | | | | | 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: add dependency to bz2 host buildJohn Crispin2015-08-221-1/+1
| | | | Signed-off-by: John Crispin <blogic@openwrt.org>
* python: add correct host expatSteven Barth2015-08-031-0/+1
| | | | Signed-off-by: Steven Barth <steven@midlink.org>
* python: fix patch removing multiarch support for host pythonJan Čermák2015-07-021-1/+1
| | | | | | | | | | 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-271-1/+1
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: fix conflicts between python-light & python-baseAlexandru Ardelean2015-03-121-1/+1
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: revert previous patch and add a filespecAlexandru Ardelean2015-03-111-3/+3
| | | | | | | | | 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-091-1/+1
| | | | | | | | | | | 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: packetize some python modulesAlexandru Ardelean2015-03-061-47/+75
| | | | | | | | | | | | | | 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: removed ensurepip moduleJan Čermák2015-02-241-0/+1
| | | | | | | | | | 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>
* python: add ncurses(w) include folders for host pythonAlexandru Ardelean2015-02-111-1/+5
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: fix goofAlexandru Ardelean2015-01-201-1/+2
| | | | | | This should have gone in python3. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>