summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python
Commit message (Collapse)AuthorAgeFilesLines
* python3: resolve ncurses host contaminationAlexander Kanavin2020-02-184-2/+51
| | | | | | | (From OE-Core rev: ee7be51444b609a5cc1fd223b9395e9642d3bfac) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-pycairo: upgrade 1.18.2 -> 1.19.0Wang Mingyu2020-02-151-3/+3
| | | | | | | | | | -License-Update: "PDX-License-Identifier: LGPL-2.1-only OR MPL-1.1" is added (From OE-Core rev: 79c940c4df9891932367186c76652887f5aa881b) Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-pip: upgrade 19.3.1 -> 20.0.2Wang Mingyu2020-02-151-2/+2
| | | | | | | (From OE-Core rev: e521393136f94a7cafbee33f5992b31a6fef3b7e) Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3: install _tkinter.*.so to python3-tkinter packageYi Zhao2020-02-141-0/+1
| | | | | | | | | | | | | | | | When enable PACKAGECONFIG[tk], we should install _tkinter.*.so to python3-tkinter package rather than python3-misc package. Fixes: ERROR: python3-3.8.1-r0 do_package_qa: QA Issue: /usr/lib/python3.8/lib-dynload/_tkinter.cpython-38-x86_64-linux-gnu.so contained in package python3-misc requires libtk8.6.so()(64bit), but no providers found in RDEPENDS_python3-misc? [file-rdeps] (From OE-Core rev: 991d7ced7262a1340878bada307c6d021ea9cb77) Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python: Add magic recipeJoshua Watt2020-02-141-0/+19
| | | | | | | | | | The python-magic module is used by diffoscope tool to make build comparisons. (From OE-Core rev: 64560fcbe7c9658fcca86010502d00998d88f418) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python: Add libarchive-c recipeJoshua Watt2020-02-141-0/+17
| | | | | | | | | | The libarchive python module is used by diffoscope tool to make build comparisons. (From OE-Core rev: 288becda36dcc9f5435ec00258c0d0594e0011c1) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3: Do not hardcode "lib" for distutilsChangqing Li2020-02-082-0/+44
| | | | | | | | | | | | | | | | | | Get the sys.lib from python3 itself and do not use hardcoded value of 'lib' for distutils. Solve the error below that occurs when run "python3 setup.py install" on lib64 multilib platform: [Errno 2] No such file or directory: '/usr/lib/python3.7/site-packages/test-easy-install-1828.write-test' (From OE-Core rev: fb33127de5d80f5bcb84edf6cf4007bca73fa863) Signed-off-by: Li Zhou <li.zhou@windriver.com> Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3: fix the installation path of libpython3.7m.a for multilibChangqing Li2020-02-082-2/+38
| | | | | | | | | | | Fix the installation path of libpython3.7m.a on mulitlib lib64 platform to lib64 instead of lib (From OE-Core rev: 3081d3993095d2e4817bbef33c9c90dd814a45d7) Signed-off-by: Li Zhou <li.zhou@windriver.com> Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-six: Move src_uri checks to recipe mainKhem Raj2020-02-042-3/+2
| | | | | | | | | | | .inc is used by other versions of recipe as well, therefore putting checksums in .inc will break them unless the version is same as in oe-core (From OE-Core rev: 7515a38d4c2dec6117c1184dab4fbf1e9c02a993) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-six: upgrade 1.13.0 -> 1.14.0Alexander Kanavin2020-02-032-3/+4
| | | | | | | | License-update: copyright years (From OE-Core rev: d524945a553a95ec21b67432f68257cf2f312a4b) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-git: upgrade 3.0.2 -> 3.0.5Alexander Kanavin2020-02-031-2/+2
| | | | | | | (From OE-Core rev: d19ba66daad9aef683a7dee0c59af29234201574) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-setuptools: upgrade 42.0.2 -> 45.0.0Alexander Kanavin2020-02-033-5/+5
| | | | | | | (From OE-Core rev: ed1d8e2db0d3b5c60ce83ccebb7f0f7ac36f243a) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-gitdb: upgrade 2.0.5 -> 2.0.6Alexander Kanavin2020-02-032-2/+3
| | | | | | | (From OE-Core rev: cb2bebfd07f04f1049a5507af7656a92481439c3) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python: remove last remnants of python2Ross Burton2020-01-271-59/+0
| | | | | | | (From OE-Core rev: 567eae62574e8a3a9f27ab19e5ff2d845046d336) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-dbus: upgrade 1.2.14 -> 1.2.16Wang Mingyu2020-01-271-2/+2
| | | | | | | | (From OE-Core rev: 1fcdab33aff0d786c4d74420a4021b4a2db44eb4) Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3: correctly process ptest output with sedAlexander Kanavin2020-01-211-1/+1
| | | | | | | | | | | | | Particularly: [ERROR|FAIL] was matching characters rather than strings. Using (ERROR|FAIL) requires -r option. (From OE-Core rev: c041c326a1dbf1b128fc32d887acd73c6f5fb415) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3: do not compile .pyc in parallel during do_install()Alexander Kanavin2020-01-214-2/+61
| | | | | | | (From OE-Core rev: af7f5590dc49ec33268939b53879a6d011306114) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3: update to 3.8.1Alexander Kanavin2020-01-2114-485/+247
| | | | | | | | | | | | | | | | | | | | | | | Drop backports, rebase other patches. 0001-main.c-if-OEPYTHON3HOME-is-set-use-instead-of-PYTHON.patch is removed as the use case (allowing python 2 and 3 to coexist in SDKs) is no longer relevant with Python 2.x reaching end of line and upstream has refactored the code making a rebase difficult. If needed, please re-add the patch to py2, rather than py3. Python 3.8 no longer adds "m" to "3.8" in paths, so adjust the recipes and classes accordingly. The manifest for the 3.8.0 version is updated; particularly pkgutil module is now packaged in -core (as other things in core need it); this also necessitates allowing empty -pkgutil package to avoid breakage across layers. (From OE-Core rev: e6ab9f16b92aa1abdae82c535c1a452a1341b0e2) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python: remove Python 2 and all supporting classesRoss Burton2020-01-1940-3901/+0
| | | | | | | | | | | | | | | | Python 2 ceased being maintained on the 1st January 2020. We've already removed all users of it from oe-core so the final step is to move the recipe and supporting classes to meta-python2. The following are removed in this commit: - python and python-native 2.7.17 - python-setuptools - The classes pythonnative, pythondir, distutils, setuptools (From OE-Core rev: 390f3edabfb1f68ed9766245291c5f44ea00cc38) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python/python3: Whitelist CVE-2019-18348Adrian Bunk2020-01-032-0/+6
| | | | | | | | | | This is not exploitable when glibc has CVE-2016-10739 fixed, which is fixed in the upstream version since warrior. (From OE-Core rev: 0da6e0a232019fe7eccfbdf33a13c1fe0a35cddd) Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3: Update to apply libgcc fix to libpython, glibc onlyRichard Purdie2020-01-021-1/+1
| | | | | | | | Update to account for review feedback on list. (From OE-Core rev: ec788594f3f6a47687c6eb321437f2d2b58b1518) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3: RDEPEND on libgccJoshua Watt2020-01-011-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | =help> List-Subscribe: <http://lists.openembedded.org/mailman/listinfo/openembedded-core>, <mailto:openembedded-core-request@lists.openembedded.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org X-Virus-Scanned: clamav-milter 0.101.4 at dan X-Virus-Status: Clean X-Evolution-Source: 1525863794.3857.16@hex Content-Transfer-Encoding: 8bit Python uses features of glibc that require it to dynamically load (i.e. dlopen()) libgcc_s at runtime. However, since this isn't a link time dependency, it doesn't get picked up automatically by bitbake so manually add it to RDEPENDS. There is an outstanding bug in Python to make it explicitly link against libgcc at link time which would remove the need for this. See: https://bugs.python.org/issue37395 (From OE-Core rev: df107f3a149b1e88d9f869e7ff87950ccf5aaee0) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3: Upgrade 3.7.5 -> 3.7.6Adrian Bunk2020-01-011-2/+2
| | | | | | | (From OE-Core rev: aee9beb12226abf7a195b8ee801ea488920b2fdb) Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-pygments: update to 2.5.2Alexander Kanavin2019-12-301-2/+2
| | | | | | | (From OE-Core rev: 6e2d926a428530343bb4358d6e42a505c0f663ac) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python: Whitelist CVE-2017-17522 CVE-2017-18207 CVE-2015-5652Adrian Bunk2019-12-091-0/+10
| | | | | | | | | | One Windows-only CVE that cannot be fixed, and two CVEs where upstream agreement is that they are not vulnerabilities. (From OE-Core rev: 56d5b181f3b119f2bbd310dedd6d3b26e76f5944) Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-setuptools: upgrade 41.6.0 -> 42.0.2Wang Mingyu2019-12-063-2/+2
| | | | | | | (From OE-Core rev: f494e7166141745b9bf6a22ceb8dea0499507ca7) Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-pbr: upgrade 5.4.3 -> 5.4.4Wang Mingyu2019-12-062-5/+5
| | | | | | | (From OE-Core rev: be70057d2fc0b2e2d05af452f95e85f61aa4d380) Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-dbus: upgrade 1.2.12 -> 1.2.14Wang Mingyu2019-12-061-2/+2
| | | | | | | (From OE-Core rev: 200c3f35aa33fccb90d76ac770960949f005dd1b) Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python: use PYTHON_FOR_BUILD, don't add HOSTPYTHONRoss Burton2019-11-293-43/+8
| | | | | | | | | | There's already a variable for "the host python to use during the build when cross-compiling", so there's no need to add another. (From OE-Core rev: 1ede9777478469fbdb633782e0ffb2ae68b1a578) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python: use correct autotools variablesRoss Burton2019-11-291-2/+4
| | | | | | | | | Use EXTRA_OECONF and CACHED_CONFIGUREVARS as nature intended. (From OE-Core rev: 260804462766116941a1d9100ef8be3e66b93300) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python: restore bytecode optimisationRoss Burton2019-11-292-6/+6
| | | | | | | | | | | | | The upgrade from 2.7.3 to 2.7.9 in oe-core cb02ecb introduced some copy-paste errors which inadvertandly disabled the generation of optimised bytecode (.pyo files). Restore the intended behaviour and bring back .pyo files. (From OE-Core rev: f49077af44969212530a7f1b5cb9370fefb85434) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python: package .pyo files tooRoss Burton2019-11-291-1/+1
| | | | | | | | | | The manifest parsing code was only adding .py and .pyc paths to FILES, generalise the latter to .py? so it catches .pyo files too. (From OE-Core rev: 1e0ef76dcccfa10cdf473670acd2c52332bb3412) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python: move make override variables to EXTRA_OEMAKERoss Burton2019-11-291-21/+10
| | | | | | | | | | Instead of passing the same five variables to oe_runmake repeatedly, add them to EXTRA_OEMAKE once. (From OE-Core rev: c4ae09134732e4e95f17d6e572756bec49a9e3d0) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python: no need to add HOSTPGENRoss Burton2019-11-292-20/+6
| | | | | | | | | There's no need to patch in HOSTPGEN when we can just override PGEN directly. (From OE-Core rev: d274a3d3bd90d8726752c3a18bc15fdf6bc2f37d) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3: add python3-misc-native to RPROVIDESNicola Lunghi2019-11-291-0/+3
| | | | | | | | | | | The package python3-misc is not in the manifest file so it needs to be added explicitely to RPROVIDES_class-native. (From OE-Core rev: 95c6a1180f14e1db815ff92f7a1dce8506bdb294) Signed-off-by: Nicola Lunghi <nick83ola@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-native: add python-misc-native to RPROVIDESNicola Lunghi2019-11-291-0/+3
| | | | | | | | | | | The package python-misc is not in the manifest file so it needs to be added explicitely to RPROVIDES for native class. (From OE-Core rev: f6164cc210d584efb702445dcd2167aa352b40af) Signed-off-by: Nicola Lunghi <nick83ola@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-testtools: Avoid traceback2 module requirementRichard Purdie2019-11-282-0/+25
| | | | | | | | | | | | | | traceback2 adds traceback for python2. Rather than depend on traceback2, we're python3 only so just use traceback. This caused breakage in oe-selftest -j which uses testtools on the autobuilder using buildtools-tarball. [YOCTO #13652] (From OE-Core rev: ee80a06c107375e3cf0d246ea17c09dda4536dab) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-native: don't cause a full regeneration of the built sourcesRoss Burton2019-11-271-4/+3
| | | | | | | | | | | | | | | | | When cross-compiling Python 2 you need a native pgen binary, but the cross recipe can't do this on it's own so we build it in python-native and install it. The rule to build pgen was also causing a complete rebuild of all of the generated sources, which meant that building Python 2 needs a *host* Python 2. This can be fixed by simply building pgen, as this is all we need to install. [ YOCTO #13645 ] (From OE-Core rev: 04f7e28963b413b88724c80f67787b440793570e) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3: update patch statusRoss Burton2019-11-251-1/+1
| | | | | | | (From OE-Core rev: 3bb0a089840caf51065d7f8b59b3e055bce31e1c) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-pycairo:upgrade 1.18.1 -> 1.18.2Zang Ruochen2019-11-251-2/+2
| | | | | | | | (From OE-Core rev: 3a1690812a7187196db047bf715d8d7db991ebd6) Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-setuptools: upgrade 41.4.0 -> 41.6.0Zang Ruochen2019-11-253-2/+2
| | | | | | | | (From OE-Core rev: c40d5f0db5238f03174f11b538706f58bb2f0236) Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python: update to 2.7.17Alexander Kanavin2019-11-2114-904/+49
| | | | | | | | | | | | | | | | | Drop backports, rebase a couple of patches. This is the second last release of py 2.x; upstream support ends on 1 January 2020, there will be one final 2.x afterwards. Note that the only thing that still needs python 2.x in oe-core is u-boot; when the next u-boot update arrives, we should find out where the py3 migration is for that component before merging the update. (From OE-Core rev: 184b60eb905bb75ecc7a0c29a175e624d8555fac) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-six:upgrade 1.12.0 -> 1.13.0Zang Ruochen2019-11-142-3/+3
| | | | | | | | | -License-Update: Copyright year updated to 2019. (From OE-Core rev: 4a82f8f8105b40208159230ed0102d2f1b991bc1) Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-misc: add python3-audio to RDEPENDSTrevor Gamblin2019-11-141-1/+1
| | | | | | | | | | | | | | | | | | | | | Import issues are encountered for the python3 aifc module, on images with python3-misc installed: |>>> import aifc |Traceback (most recent call last): |File "<stdin>", line 1, in <module> |File "/usr/lib64/python3.7/aifc.py", line 254, in <module> |from chunk import Chunk |ModuleNotFoundError: No module named 'chunk' |>>> The chunk module is part of python3-audio. Add python3-audio to RDEPENDS for python3-misc to fix the error. (From OE-Core rev: 9f0e61f6ce1d945226b706f4376a762fcc636703) Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3: Upgrade 3.7.4 -> 3.7.5Adrian Bunk2019-11-055-224/+4
| | | | | | | | | Backported patches removed. (From OE-Core rev: 87f77ac60f57e6b3bfb2b3f3f5877b8d90cf22b8) Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python: fix CVE-2019-16935Chen Qi2019-10-282-0/+102
| | | | | | | (From OE-Core rev: 1a7593bcdaf8a8cf15259aee8a0e2686247f2987) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3: fix CVE-2019-16935Chen Qi2019-10-282-0/+87
| | | | | | | (From OE-Core rev: 78846c823cbb662897ce85b061a745c1dd7deeab) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-setuptools:upgrade 41.2.0 -> 41.4.0Zang Ruochen2019-10-233-2/+2
| | | | | | | (From OE-Core rev: c94bb5b7431af8b495a3fa96e96d968dc45fb4f3) Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-pip:upgrade 19.2.3 -> 19.3.1Zang Ruochen2019-10-231-2/+2
| | | | | | | (From OE-Core rev: 0f3fe0edb5a7c26d4a3162d54c9e627e396af476) Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python: Fix CVE-2019-10160Changqing Li2019-10-232-0/+82
| | | | | | | | (From OE-Core rev: b4240b585d7fcac2fdbf33a8e72d48cb732eb696) Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>