aboutsummaryrefslogtreecommitdiff
path: root/lang/python
Commit message (Collapse)AuthorAge
...
* | | python-gnupg: add packageDaniel Golle2017-07-08
| | | | | | | | | | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* | | Merge pull request #4559 from commodo/python-pyodbc-fixDaniel Golle2017-07-07
|\ \ \ | | | | | | | | pyodbc: fix python-pyodbc variant ; wasn't working
| * | | pyodbc: fix python-pyodbc variant ; wasn't workingAlexandru Ardelean2017-07-07
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Python3 variant was working fine. Also add add PACKAGE_python-pyodbc conditional depend for python packages Otherwise, both Python & Python3 interpreters get built, even tho only one variant is selected. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* / / python: fix intermitent build failureAlexandru Ardelean2017-07-06
|/ / | | | | | | | | | | | | | | | | | | Fixes: https://github.com/openwrt/packages/issues/4548 When running parallel jobs, there are chances that the Build/InstallDev rule may run before the Host/Install rule and fail the build. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* | python,python3: add dependency on CONFIG_PACKAGE_ symbols for setuptools & pipAlexandru Ardelean2017-07-03
| | | | | | | | | | | | | | | | | | | | | | | | If you build python/python3 and later decide to build python(3)-setuptools and/or python(3)-pip, the build won't re-run without adding `CONFIG_PACKAGE_python(3)-setuptools` and `CONFIG_PACKAGE_python(3)-pip`. Seems to resolve issue: https://github.com/openwrt/packages/issues/4529 Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* | python,python3: simplify `sed` expression for setuptools & pipAlexandru Ardelean2017-07-03
| | | | | | | | | | | | | | | | | | A suggestion from comment (from Philip Prindeville): https://github.com/openwrt/packages/issues/4529#issuecomment-312518121 Avoids some escaping of slashes. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* | python,python3: fix underlinking issues with lrt (clock_gettime())Alexandru Ardelean2017-07-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Seems it's called underlinking that's happening only on Ubuntu 12.04 with libressl (that comes from LEDE's tools folder). Link here: https://ubuntuforums.org/showthread.php?t=1870586 I'm still reading about this a bit. Since I don't really get it. But applying that fix (as in the link) seems to fix compiling on Ubuntu 12.04, and tried also on 16.04 (to make sure). Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* | python-pyodbc: add packageDaniel Golle2017-07-01
| | | | | | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* | python,python3: install mk files in the Host/Install phaseAlexandru Ardelean2017-06-29
| | | | | | | | | | | | | | | | The Build/InstallDev rule is activated only for target builds. But if someone needs only the host Python, then these files need to be installed in this phase, and not Build/InstallDev Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* | python-six: rename PKG_NAME to python-six, and adapt unpack cmd for buildAlexandru Ardelean2017-06-29
| | | | | | | | | | | | | | | | | | | | OVS has PKG_BUILD_DEPENDS:=python-six/host as dep. But that doesn't seem to work, since the PKG_NAME:=six So, this change renames the PKG_NAME to python-six, to make it clear it's Python package. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* | python3: fix distutils path to package when using bytecodesAlexandru Ardelean2017-06-12
|/ | | | | | | | | | | | | | | | If there is only Python bytecodes, then the __init__.py script will be concatenated, and the __init__.pyc as well. This is becase this bit `path = os.path.join(path, '__init__'+extension)` is iterated twice. This is a bug in Python3, also because we ship bytecodes instead of source code [ with Python & Python3 ]. Python is not affected. Reported-by: Mirko Vogt <mirko@nanl.de> Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python-lxml: add initial version (with python3 variant included)Alexandru Ardelean2017-06-05
| | | | | | | | This package requires libxml2 & libxslt to be built, has some C code so it's not installable via pip. It needs cross-compilation. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python-six: add host-side buildAlexandru Ardelean2017-05-24
| | | | | | | Needed for Open vSwitch's python libs. And build. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python3-pip: override Package/python3-pip/install ruleAlexandru Ardelean2017-05-19
| | | | | | | | | | | | | | This is in essence fixes pip3. That means pip3 will ship without Python byte-codes for a while, until I'll find a better way to fix it. I couldn't think of a not-very hack-ish way of doing it. The only draw-back of this, will be that pip3 will run a bit slower ; but that should be ok for a while. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python3: remove __pycache__ folders pip & setuptoolsAlexandru Ardelean2017-05-19
| | | | | | | | | | | | | python3-pip & python3-setuptools have slightly different installation mechanisms. We need to remove the __pycache__ folders. Seems they're generated. This also reduces the size of the python3-pip & python3-setuptools packages. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python,python3: allow python packages to override Package/<pkg>/install ruleAlexandru Ardelean2017-05-19
| | | | | | | Python packages try to enforce their own. For some cases this may not be desired. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python packages: move all things python under lang/pythonAlexandru Ardelean2017-05-17
| | | | | | | | | | | | I admit this may be be a bit aggressive, but the lang folder is getting cluttered/filled up with Python, PHP, Perl, Ruby, etc. packages. Makes sense to try to group them into per-lang folders. I took the Pythons. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python,python3: bump PKG_RELEASEsAlexandru Ardelean2017-03-09
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: split source packages away from compiled packagesAlexandru Ardelean2017-03-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Well, they're not yet compiled, but in the next commit they should be. People have been complaining [citation needed] to me via email or via Github that Python's performance is crap because it packages sources directly and they're not compiled. And Python has to compile the sources on each run, and on-the-fly. Allowing compilation caching is also a no-no, because I'll get complaints that the flash storage fills up whenever a Python app runs. So, to give the user a choice, the new de-facto packaging for Python packages will be: * ship compiled + [ preferably ] optimized files * package sources separately The problem is that this doubles the number of packages in LEDE/OpenWrt, but build-times should not suffer a big hit, since the compilation is done once, and the install phase should not be too intensive. Oh, and people don't need ship source packages if they don't want to. To do that, a packager needs to just call `$(eval $(call BuildPackage,python-<package>-src))` The `python-` prefix is important. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python,python3: drop remove .pyc & .pyo filesAlexandru Ardelean2017-03-09
| | | | | | We'll control in the install phase what we ship [byte-codes or source files] Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python,python3: drop tests from all core packagesAlexandru Ardelean2017-03-09
| | | | | | | Well, this slipped by for some time. This should make the Python core packages even more lighter. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: fix python-dev clash with python-baseAlexandru Ardelean2017-03-09
| | | | | | | Both want to install libpython.so. python-dev should install libpython.a Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python,python3: move PyPackage install rules in the beggining of the Package ↵Alexandru Ardelean2017-03-09
| | | | | | | | | install rules So that we can process Python sources installed by those rules, if we need to. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: move filespec shell code into fileAlexandru Ardelean2017-03-09
| | | | | | | Cleanup. And preparation for adding a bit more functionality. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python,python3: fix goof with multiline command breakAlexandru Ardelean2017-03-09
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: remove setupterm() redefinitionAlexandru Ardelean2017-02-13
| | | | | | | 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,python3: override python setuptools & pip versionsAlexandru Ardelean2017-02-09
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python,python3: add python-pip-conf package to be used by both python-pip & ↵Alexandru Ardelean2017-01-23
| | | | | | python3-pip Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* pip,setuptools: move as part of python,python3 buildAlexandru Ardelean2017-01-23
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python,python3: install built-in pip and setuptoolsAlexandru Ardelean2017-01-23
| | | | | | Easier than using external package. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* Merge pull request #3813 from NeoRaider/hostpkgMatthias Schiffer2017-01-11
|\ | | | | Use STAGING_DIR_HOSTPKG where appropriate
| * treewide: replace $(STAGING_DIR)/host and $(HOST_BUILD_PREFIX) with ↵Matthias Schiffer2017-01-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $(STAGING_DIR_HOSTPKG) As both LEDE and OpenWrt have STAGING_DIR_HOSTPKG now, we can start to rely on it. See 73b7f55424de52d8179a9ad808252fe3bf8dcc9d for more information on STAGING_DIR_HOSTPKG. STAGING_DIR_HOSTPKG won't actually be changed before the first LEDE release (it is equivalent to $(STAGING_DIR)/host), so this simple search/replace cleanup is safe to apply. Doing this cleanup now will be useful for the Gluon project (an OpenWrt/LEDE based firmware framework) for experimenting with modifying STAGING_DIR_HOSTPKG before doing this in the LEDE upstream. Also fixes a typo in the dbus Makefile ("STAGIND_DIR"). Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
| * python{,3}: remove STAGING_DIR_HOSTPKG fallback definitionMatthias Schiffer2017-01-10
| | | | | | | | | | | | | | STAGING_DIR_HOSTPKG is now defined in both OpenWrt and LEDE, so we can start to rely on it. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* | python: bump PKG_RELEASE to 3Alexandru Ardelean2017-01-11
| | | | | | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* | python: remove `011-do-not-prefer-ncursesw.patch`Alexandru Ardelean2017-01-11
| | | | | | | | | | | | | | LEDE now provides libncursesw by default [even for libncurses]. No need to keep this patch around. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* | python: use built-in libffi lib for host buildAlexandru Ardelean2017-01-11
| | | | | | | | | | | | | | | | | | | | | | 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-11
| | | | | | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* | Revert "python: don't use libressl for host build"Alexandru Ardelean2017-01-11
| | | | | | | | This reverts commit ca800e60b040a2b409801560dc16dbcac6cba2b1.
* | python: drop CFLAGS in HOST_CONFIGURE_ARGS ; it's already in HOST_CONFIGURE_VARSAlexandru Ardelean2017-01-11
| | | | | | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* | python: remove Host/Install rule default addAlexandru Ardelean2017-01-11
|/ | | | | | | | I just found out that, that the BUILD_VARIANT var is not set for the host build, so technically this code would never get used. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: don't use libressl for host buildAlexandru Ardelean2017-01-06
| | | | | | | | | | | | | | | | | 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-04
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: simplify/unify default build rules for python packagesAlexandru Ardelean2017-01-04
| | | | | | | | | 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-dev: add python-lib2to3 as dependencyAlexandru Ardelean2017-01-04
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* python: update PYTHON_FOR_BUILD (based on python3)Alexandru Ardelean2017-01-04
| | | | | | | | | 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-04
| | | | | | | | | | 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-16
| | | | | | | | | | | | | | | | | | | | | | 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-07
| | | | | | | --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-07
| | | | | | | | 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-07
| | | | | | | Allows for more granularity with respect to python-host.mk and python-package.mk inclusions. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>