aboutsummaryrefslogtreecommitdiff
path: root/lang/python
Commit message (Collapse)AuthorAge
* python,python3: fix recursive deps caused by dangling DEPENDSAlexandru Ardelean2018-01-17
| | | | | | | For python `src` packages we should clear out the DEPENDS to prevent recursive deps from happening. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* Merge pull request #5457 from jefferyto/python-pkg-setup-args-varsHannu Nyman2018-01-17
|\ | | | | python,python3: add vars to customize setup arguments / variables
| * python,python3: add vars to customize setup arguments / variablesJeffery To2018-01-16
| | | | | | | | | | | | | | | | | | | | | | | | | | This adds: * PYTHON_PKG_SETUP_ARGS * PYTHON_PKG_SETUP_VARS * PYTHON3_PKG_SETUP_ARGS * PYTHON3_PKG_SETUP_VARS to customize Python package setup arguments / environment variables. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* | python,python3: disable dependencies between python src packagesAlexandru Ardelean2018-01-16
|/ | | | | | | Related to: https://github.com/openwrt/packages/issues/5424 Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* Merge pull request #5440 from jefferyto/python-txsocksx-srcHannu Nyman2018-01-15
|\ | | | | python-txsocksx: use variant PyBuild/Compile syntax, add src package, refresh patches
| * python-txsocksx: use variant PyBuild/Compile syntax, add src package,Jeffery To2018-01-14
| | | | | | | | | | | | refresh patches Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* | Merge pull request #5441 from jefferyto/python-src-packagesHannu Nyman2018-01-15
|\ \ | | | | | | python-*,python3-*: add src packages for multiple packages
| * | python-*,python3-*: add src packages for multiple packagesJeffery To2018-01-15
| | | | | | | | | | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* | | python-cffi: update to 1.11.4, add src packagesJeffery To2018-01-15
|/ / | | | | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* | Merge pull request #5360 from commodo/python_reproducibleHannu Nyman2018-01-14
|\ \ | | | | | | python,python3: honour the SOURCE_DATE_EPOCH for the build-info
| * | python,python3: honour the SOURCE_DATE_EPOCH for the build-infoAlexandru Ardelean2018-01-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Modules/getbuildinfo.c allows the use of DATE and TIME macros to be defined via CFLAGS. These vars, control the build date & time when the interpreter is opened, and can be read via the `platform._sys_version()` function. So, a conversion from SOURCE_DATE_EPOCH to DATE & TIME is required at build-time. This is especially needed for `platform._sys_version()` to work. The installation of pip seems to rely on this. The logic has been adapted from: https://wiki.debian.org/ReproducibleBuilds/TimestampsProposal#Makefile Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* | | Merge pull request #5439 from jefferyto/python-pyptlib-srcHannu Nyman2018-01-14
|\ \ \ | | | | | | | | python-pyptlib: use default variant build/compile rule, add src package
| * | | python-pyptlib: use default variant build/compile rule, add src packageJeffery To2018-01-14
| | |/ | |/| | | | | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* | | Merge pull request #5438 from jefferyto/python-ipaddress-srcHannu Nyman2018-01-14
|\ \ \ | | | | | | | | python-ipaddress: use default variant build/compile rule, add src package
| * | | python-ipaddress: use default variant build/compile rule, add srcJeffery To2018-01-14
| |/ / | | | | | | | | | | | | | | | package Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* / / python-crypto: add python3 variant, src packages, omit testsJeffery To2018-01-14
|/ / | | | | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* | python-enum34: use default variant build/compile rule, add src packageJeffery To2018-01-12
| | | | | | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* | Merge pull request #5423 from jefferyto/zope-interface-4.4.3Hannu Nyman2018-01-12
|\ \ | | | | | | zope-interface: update to 4.4.3, rename to python-zope-interface, add python3 variant
| * | zope-interface: update to 4.4.3, rename to python-zope-interface, addJeffery To2018-01-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | python3 variant Renaming the package is needed to allow for a Python 3 variant (python3-zope-interface). Packages that depend on this (only twisted) also have their dependencies adjusted. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* | | python-service-identity: update to 17.0.0, add python3 variantJeffery To2018-01-12
|/ / | | | | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* | Merge pull request #5419 from commodo/python-package-mk-localizeHannu Nyman2018-01-11
|\ \ | | | | | | treewide: re-organizing python-package.mk & python3-package.mk
| * | treewide: use local python-package.mk & python3-package.mk filesAlexandru Ardelean2018-01-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This guarantees for the package feeds that the mk files will always be available for all packages. Will need to see about external-feed Python packages a bit later. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
| * | python,python3: merge package install scriptsAlexandru Ardelean2018-01-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The only difference just a parameter for Python3 [ -b to compile bytecodes in legacy mode ]. No need to keep 2 almost identical files now that they're exported. I'm a bit scared of that param, since it may get removed at some point. But let's see until then. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
| * | python,python3: simplify path to install shell-scriptAlexandru Ardelean2018-01-10
| | | | | | | | | | | | | | | | | | | | | Now that all files are exported, it makes sense to just reference the script directly. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
| * | python,python3: export mk files outside of python package dirsAlexandru Ardelean2018-01-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since `lang/python` is it's own folder of Python packages (for both Python 2 & 3), and these build rules are needed in a lot of packages [especially Python packages], putting them here makes sense architecturally, to be shared. This also helps get rid of the `include_mk` construct which relies on OpenWrt core to provide, and seems like a broken design idea that has persisted for a while. Reason is: it requires that Python 2/3 be built to provide these mk files for other Python packages, which seems like a bad idea. Long-term, there could be an issue where some other feeds would require these mk files [e.g. telephony] for some Python packages. We'll see how we handle this a bit later. For now we limit this to this feed. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
| * | python,python3: do not install .mk snippetsMatthias Schiffer2018-01-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | The .mk snippets are not really usable at the moment, as they cannot be considered for metadata collection (package DUMP) when included through include_mk. Python packages do not use include_mk anymore for this reason, so the install commands can be removed as well. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* | | python-pyopenssl: update to 17.5.0Jeffery To2018-01-11
|/ / | | | | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* | Merge pull request #5412 from jefferyto/python-pycparser-2.18Hannu Nyman2018-01-10
|\ \ | | | | | | python-pycparser: update to 2.18, fix _build_tables error
| * | python-pycparser: update to 2.18, fix _build_tables errorJeffery To2018-01-11
| | | | | | | | | | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* | | Merge pull request #5411 from jefferyto/python-pyasn1-modules-0.2.1Hannu Nyman2018-01-10
|\ \ \ | | | | | | | | python-pyasn1-modules: update to 0.2.1
| * | | python-pyasn1-modules: update to 0.2.1Jeffery To2018-01-10
| |/ / | | | | | | | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* | | Merge pull request #5410 from jefferyto/python-pyasn1-0.4.2Hannu Nyman2018-01-10
|\ \ \ | | | | | | | | python-pyasn1: update to 0.4.2
| * | | python-pyasn1: update to 0.4.2Jeffery To2018-01-10
| |/ / | | | | | | | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* | | Merge pull request #5409 from jefferyto/python-parsley-py3Hannu Nyman2018-01-10
|\ \ \ | | | | | | | | python-parsley: add python3 variant
| * | | python-parsley: add python3 variantJeffery To2018-01-10
| |/ / | | | | | | | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* | | Merge pull request #5408 from jefferyto/python-ipaddress-1.0.19Hannu Nyman2018-01-10
|\ \ \ | | | | | | | | python-ipaddress: update to 1.0.19
| * | | python-ipaddress: update to 1.0.19Jeffery To2018-01-10
| |/ / | | | | | | | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* | | Merge pull request #5407 from jefferyto/python-gmpy2-py3Hannu Nyman2018-01-10
|\ \ \ | | | | | | | | python-gmpy2: add python3 variant
| * | | python-gmpy2: add python3 variantJeffery To2018-01-10
| |/ / | | | | | | | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* | | Merge pull request #5404 from jefferyto/python-cryptography-2.1.4Hannu Nyman2018-01-10
|\ \ \ | | | | | | | | python-cryptography: update to 2.1.4, refresh patches
| * | | python-cryptography: update to 2.1.4, refresh patchesJeffery To2018-01-10
| |/ / | | | | | | | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* / / python-attrs: update to 17.4.0, add python3 variantJeffery To2018-01-10
|/ / | | | | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* / treewide: fix incorrect *_BUILD_DEPENDSMatthias Schiffer2018-01-09
|/ | | | | | | | | | | | | | | | Build depends refer to source package names, not binary package names. In many cases, PKG_BUILD_DEPENDS simply duplicated runtime dependencies of a source package's binary packages; as the corresponding source packages are implicitly added as bulid dependencies, PKG_BUILD_DEPENDS can simply be dropped in these cases. In the other cases, *_BUILD_DEPENDS is fixed to refer to the correct source package name. Dependency of mysql-server is adjusted from libncursesw to libncurses (as libncursesw is a virtual package provided by libncurses), so the build dependency on ncurses is emitted unconditionally. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* python,python3: undo egg-info removalJeffery To2018-01-08
| | | | | | | | | | This reverts commits 4333d1dcbfd67dde4ca7d08717bc345cc424fbf8 and 074d2863be48c1a9093fffcda91f7a328bc7d0cb, making Python packages discoverable again by pkg_resources. Fixes #5361. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* python,python3: add zlib/host to HOST_BUILD_DEPENDS (ver 2)Alexandru Ardelean2018-01-02
| | | | | | | | | | | | | | | This reverts commit 3c6d14021e62d68a7d9bdd4520b799c5c207fde1. ( which is a revert of commit c764f77dc1a62ce667b38520496ddb9bfaececab ) The initiall commit ( c764f77dc1a62ce667b38520496ddb9bfaececab ) was reverted, becase zlib did not have a host-build. Now it does: https://github.com/openwrt/openwrt/commit/cbe71649bc49ccc6ae96385482d0794c33336f68 So, now it should be good to put this in. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python3: bump to version 3.6.4Alexandru Ardelean2017-12-31
| | | | | | | | | | | | | | | | Re-worked patch `003-do-not-run-distutils-tests.patch` to reduce patch-size. Removed `011-fix-ncursesw-definition-colisions.patch` it is fixed upstream. Refreshed with `make package/python3/refresh` Resetting PKG_RELEASE to 1. This variable was never used for pip3 & setuptools, since VERSION is specified in the package definitions. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* Merge pull request #5303 from commodo/python-source-date-epochHannu Nyman2017-12-31
|\ | | | | python,python3: add support for SOURCE_DATE_EPOCH var
| * python,python3: add support for SOURCE_DATE_EPOCH varAlexandru Ardelean2017-12-20
| | | | | | | | | | | | | | | | | | | | | | | | | | See: https://github.com/openwrt/packages/issues/5278 This should make Python & Python3 packages reproducible when building. In my local tests, I got the same sha256 for a sample .pyc file, so likely this is the solution that should address this. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* | python-cffi: fix host build/installationAlexandru Ardelean2017-12-29
|/ | | | | | | | | | Fixes: https://github.com/openwrt/packages/issues/5318 Not sure how this worked before. The host python-cffi needs a libffi installed on the host side. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* Revert "python,python3: add zlib/host to HOST_BUILD_DEPENDS"Hannu Nyman2017-12-16
| | | | | | | | | | | This reverts commit c764f77dc1a62ce667b38520496ddb9bfaececab. The commit caused warnings to be displayed at make defconfig etc. WARNING: Makefile 'package/feeds/packages/python/python/Makefile' has a host build dependency on 'zlib/host' but 'package/libs/zlib/Makefile' does not implement a 'host' build type Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>