summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python
Commit message (Collapse)AuthorAgeFilesLines
...
* python3-distribute: fix interpreterRobert Yang2014-08-281-0/+2
| | | | | | | | | It should use "/usr/bin/env python3" rather than python. (From OE-Core rev: 5cf12b20c08d927af8b1a4e2997d325a030c2269) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-pygtk: fix native python pathRobert Yang2014-08-151-0/+1
| | | | | | | | | | | | | | Fixed: 1) Set IMAGE_INSTALL_append = " python-pygtk-demo" in local.conf 2) $ bitbake core-image-minimal [snip] Computing transaction...error: Can't install python-pygtk-demo-2.24.0-r1@core2_64: no package provides /usr/bin/python-native/python [snip] (From OE-Core rev: d70bc02a80f8508995cdf8ae536a0153cebee8c9) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-scons-native: Make it useable if old host install existsPeter Kjellerstedt2014-08-151-1/+1
| | | | | | | | | | | | | | | | | This was recently fixed to work on Fedora 17 if no scons is installed on the host by setting the PYTHONPATH to where BitBake has installed scons. However, if an older version of scons than 2.3.0 is installed, then it still breaks. This is due to how scons tries to determine its installation by searching through standard paths. If it finds an old installation it prepends that path to sys.path thereby causing it to ignore the PYTHONPATH. The solution is to instead set SCONS_LIB_PATH which works both if scons is not installed and if an older version is installed. (From OE-Core rev: e16c968ffb96fac3177bb885872c2b5cdde87239) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python: Fix build on muslKhem Raj2014-08-152-0/+44
| | | | | | | | | | musl has posix_close which conflicts in python so lets rename it. (From OE-Core rev: 9de4f6eb07696f618d4762c6eeb34dc9ea3080bd) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-dbus: use PACKAGECONFIG for doc generationChristopher Larson2014-08-111-0/+4
| | | | | | | | | | | | | Adds 'docs' (for html doc generation) and 'api-docs' (for API doc generation) configurations and leaves them both disabled by default. This avoids autodetected dependency upon docutils. Fixes [YOCTO #6530] (From OE-Core rev: 7216ddad59f6a2315323befa69eebdbf07625e25) Signed-off-by: Christopher Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-smartpm: fix option typo of command channelKai Kang2014-08-021-1/+1
| | | | | | | | | | | | | | | | | | | | | When run smart, it fails: root@qemu1:~# smart channel --remove-all error: No action specified for command 'channel' If no default value of arg 'dest' is provided in method add_option() of optparse.OptionParser, it replaces hyphen('-') in new added option with underscore('_') as dest. In function ensure_action() it checks action strings with options from optparse.OptionParser. So it is 'remove_all' which need to be checked rather than 'remove-all'. (From OE-Core rev: 03266e89a67ec1373529fae32b2cedff21414ff5) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python: python-pycairo: add python-pycairo-nativeMax Eliaser2014-08-021-0/+2
| | | | | | | | | | | | A -native variant of python-pycairo will be necessary for running the native version of pybootchartgui. It may also come in handy for running other Python utilities from the native sysroot. (From OE-Core rev: 39cf9bcc28df7a4a37bc32e220ddc57b645350d4) Signed-off-by: Max Eliaser <max.eliaser@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python: fix _json module arbitrary process memory read vulnerabilityDaniel BORNAZ2014-07-253-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | http://bugs.python.org/issue21529 Python 2 and 3 are susceptible to arbitrary process memory reading by a user or adversary due to a bug in the _json module caused by insufficient bounds checking. The sole prerequisites of this attack are that the attacker is able to control or influence the two parameters of the default scanstring function: the string to be decoded and the index. The bug is caused by allowing the user to supply a negative index value. The index value is then used directly as an index to an array in the C code; internally the address of the array and its index are added to each other in order to yield the address of the value that is desired. However, by supplying a negative index value and adding this to the address of the array, the processor's register value wraps around and the calculated value will point to a position in memory which isn't within the bounds of the supplied string, causing the function to access other parts of the process memory. (From OE-Core rev: 9ec213bf67afbdfdbe25802ec86487bb22aeb2e4) Signed-off-by: Benjamin Peterson <benjamin@python.org> Applied to python-native recipe in order to fix the above mentioned vulnerability. Upstream-Status: Submitted Signed-off-by: Daniel BORNAZ <daniel.bornaz@enea.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-numpy: add support for powerpc64 architectureTing Liu2014-07-193-0/+173
| | | | | | | | (From OE-Core rev: 189dae9edf24ba7bc60c51d4f26d91fe5bdf7dec) Signed-off-by: Ting Liu <ting.liu@freescale.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-distribute: add nativesdk to BBCLASSEXTENDJoão Henrique Ferreira de Freitas2014-07-191-1/+7
| | | | | | | | | | Without this, python tools that need python-distribute doesn't install in SDK generated by OE. (From OE-Core rev: 778a00c3dd656bbfac03274b5f60788518f7b964) Signed-off-by: João Henrique Ferreira de Freitas <joaohf@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python: Forcibly disable tkRichard Purdie2014-07-171-5/+10
| | | | | | | | | | | Avoids the determinism problem shown with the warnings: WARNING: QA Issue: python-tkinter rdepends on libx11 but its not a build dependency? [build-deps] WARNING: QA Issue: python-tkinter rdepends on tcl-lib but its not a build dependency? [build-deps (From OE-Core rev: 53ae544cfdac22c82af452b8c7ebe6664296bd9b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-pycurl: Upgrade 7.19.3 -> 7.19.3.1Richard Purdie2014-07-172-15/+15
| | | | | | | | License text just moved within the README.rst (same checksum) (From OE-Core rev: 2d7566c7b564facb4ada5b29f7a77bfb203ebcb0) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-scons: Upgrade 2.3.0 -> 2.3.2Richard Purdie2014-07-172-3/+3
| | | | | | | | License file changes copyright years only. (From OE-Core rev: 31ef959d9c0f2fc9a141d06ef01b5cfb14412c4e) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-docutil: Upgrade 0.11 -> 0.12Richard Purdie2014-07-171-3/+3
| | | | | | | | | License change is just a date change in the license file, looks like English to German locale change to the date display. (From OE-Core rev: b3f854884aacd93f6370658eafc0955023c1f31d) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3: fix builtins importsRoxana2014-06-301-1/+3
| | | | | | | | | | | | | | | | | The intent of this code is to generate things like -L=/usr/lib/foo so for paths which start with "/" we should appent the "=". We should not do this for ".". On some recent versions of binutils or patchsets on some recent distros this appears to work differently and causes build failures, for example on Ubuntu 14.04 LTS. The simple fix is to check for "." as the path prefix. [YOCTO #6467]. (From OE-Core rev: c36d459f0d40bdbd3ba809835e0475e8992bc778) Signed-off-by: Roxana <roxana.ciobanu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-gst: link python shared library to config directoryyanjun.zhu2014-06-101-0/+6
| | | | | | | | | | python-gst needs python shared library in python config directory. (From OE-Core rev: 7a3b7d70a0cc4cdef81bb63fdac7de8f1309d1fc) Signed-off-by: yanjun.zhu <yanjun.zhu@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* generate-manifest-2.7.py: Add importlibMatt Fleming2014-06-061-5/+8
| | | | | | | | | | | importlib isn't currently included in any of the python packages, so create a new one for recipes that require it. Cc: Paul Eggleton <paul.eggleton@linux.intel.com> (From OE-Core rev: b3dae96d9fdb4e26101f6f7edc6e65989375a5a2) Signed-off-by: Matt Fleming <matt.fleming@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* generate-manifest-3.3.py: Add importlibMatt Fleming2014-06-061-3/+7
| | | | | | | | | | | | importlib isn't currently included in any of the python packages, so create a new one for recipes that require it. Cc: Paul Eggleton <paul.eggleton@linux.intel.com> (From OE-Core rev: b17d2e1838f1f1c3310926a4f3eed375898c60f3) Signed-off-by: Matt Fleming <matt.fleming@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-native : Add patch to fix configure error with gcc 4.8.Philip Balister2014-05-271-0/+1
| | | | | | | | | | | | | We apply this patch to the python recipe already. Without this patch the zeroc-ice-native recipe will not build. See: http://bugs.python.org/issue17547 for more details. (From OE-Core rev: 2335a8ed3748e687e7f34f21f27f8e4029d1e26b) Signed-off-by: Philip Balister <philip@balister.org> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python: remove usage of FILESPATHPetter Mabäcker2014-05-132-2/+1
| | | | | | | | | | | | | | Fixes [YOCTO #4497] Usage of FILESPATH is discouraged, since it can make recipes harder to bbappend. Instead FILESEXTRAPATHS should be used to extend the path. Don't migrate paths that already exist in base FILESPATH to FILESEXTRAPATHS. (From OE-Core rev: 00cbfadbf402ad1462ec0c8eaaaefa9a225a4aa7) Signed-off-by: Petter Mabäcker <petter@technux.se> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-numpy: add Signed-off-by to patchesRoss Burton2014-05-132-0/+6
| | | | | | | | | | | | | | These patches were authored by Koen Kooi in oe-classic commits: 443f6022df06d9f9dc221011c1744274deff2c2c 19a4b765a694c070bc50477026cda03143af34df As the patches haven't changed since, add his SOB. (From OE-Core rev: 355674b2033143eb992a9f775a848ed22831e383) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3: Revert python-config to distutils.sysconfigTyler Hall2014-05-083-0/+48
| | | | | | | | | | | | | | | | | | | | The newer sysconfig module shares some code with distutils.sysconfig, but the same modifications as in 12-distutils-prefix-is-inside-staging-area.patch makes distutils.sysconfig affect the native runtime as well as cross building. Use the old, patched implementation which returns paths in the staging directory and for the target, as appropriate. This change reverts this upstream patch http://hg.python.org/cpython/diff/712970b019f7/Misc/python-config.in (From OE-Core rev: 7b2ffd68ae8235dcc3ddff9cbe8525e61f3b3d28) Signed-off-by: Tyler Hall <tylerwhall@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3: Substitute correct python version in shebangTyler Hall2014-05-081-1/+1
| | | | | | | | | | | | If python2 and python3 are both available, scripts that are subject to this substitution can possibly run with the wrong python version. python3-config is one such script. (From OE-Core rev: 23849347d0fe60a01578efdd6c6e23ebb444dcd6) Signed-off-by: Tyler Hall <tylerwhall@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3/gcc/autoconf: Fix Upstream-Status in some patches I authoredRichard Purdie2014-05-071-0/+2
| | | | | | (From OE-Core rev: 337798fa5c0a1d1e745a143f6a9f398b07f0628f) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-pygobject: upgrade to 2.28.3Laurentiu Palcu2014-04-301-3/+2
| | | | | | | | (From OE-Core rev: e34ffc9bcdb01f9a1cbbd705c56f7ed0358db267) Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Globally replace 'base_contains' calls with 'bb.utils.contains'Otavio Salvador2014-04-253-9/+9
| | | | | | | | | | | The base_contains is kept as a compatibility method and we ought to not use it in OE-Core so we can remove it from base metadata in future. (From OE-Core rev: d83b16dbf0862be387f84228710cb165c6d2b03b) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python: Fix CVE-2014-1912Maxin B. John2014-04-092-0/+27
| | | | | | | | | | | | | A remote user can send specially crafted data to trigger a buffer overflow in socket.recvfrom_into() and execute arbitrary code on the target system. The code will run with the privileges of the target service. This back-ported patch fixes CVE-2014-1912 (From OE-Core rev: 344049ccfa59ae489c35fe0fb7592f7d34720b51) Signed-off-by: Maxin B. John <maxin.john@enea.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python: fix build error with Readline 6.3Chong Lu2014-04-046-0/+128
| | | | | | | | | | | | | | | Backport two patches from upstream: use new readline function types (closes #20374) Issue #20374: Avoid compiler warnings when compiling readline with libedit. [YOCTO #6107] (From OE-Core rev: a6b91ae7dec2edebc0eaea0592c42b1c455ad4d7) Signed-off-by: Chong Lu <Chong.Lu@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3: sync module dependencies from 2.7Paul Eggleton2014-03-211-3/+3
| | | | | | | | | | These have been added recently to 2.7 but were missing in the 3.3 script/inc file. (From OE-Core rev: 4669afac1004a89e6b87ec46136ca3e7448700d4) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* generate-manifest-3.3.py: sync descriptions with 2.7 versionPaul Eggleton2014-03-211-62/+62
| | | | | | | (From OE-Core rev: 081bc11c347d11d285f2948127bca81a285ada84) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python: add python-mmap to python-multiprocessing RDEPENDSPaul Eggleton2014-03-211-1/+1
| | | | | | | | | | | The multiprocessing module needs the mmap module. We got away with not having this for the build appliance because python-mmap was added to packagegroup-self-hosted, but this is the proper place to have it. (From OE-Core rev: 1c031c627a362b3f18ffa2e9caeb6cfb299b9948) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-numpy: fix build for qemumips and qemuppcChen Qi2014-03-075-0/+346
| | | | | | | | | | | | | | | | | When building python-numpy for qemumips or qemuppc, the following error appeared. cp: cannot stat `xxx/python-numpy/1.7.0-r1/*config.h': No such file or directory This is because for qemumips or qemuppc, there are no such files in SRC_URI. This patch fixes this compiling error by adding necessary files to the SRC_URI. (From OE-Core rev: 15582a25f964e53d28ca0b5c94df3a803c366fed) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-native: remove unused and duplicated sitecustomize.pyHongxu Jia2014-03-021-45/+0
| | | | | | | | | | python-native doesn't use sitecustomize.py and there is another duplicated one in meta/recipes-devtools/python/python. (From OE-Core rev: 591d488bb4600daf586385311505083e9eb227d5) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* autotools-brokensep: Mark recipes with broken separate build dir supportRichard Purdie2014-02-281-1/+1
| | | | | | | | | | | | This patch goes through the OE-Core recipes and marks those which use autotools but don't support a separate build directory (${S} != ${B}). A new class, autotools-brokensep is used for this purpose. This doesn't introduce any change in behaviour in its own right. (From OE-Core rev: 006b8a7808a58713af16c326dc37d07765334b12) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3: Fix make raceRichard Purdie2014-02-283-0/+28
| | | | | | | | This fixes a race which was showing up on the autobuilder (see patch header). (From OE-Core rev: 9d796611afc42bea5ad9cab47ba4fb5ac0cb5ddd) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3: Fix QA warningRichard Purdie2014-02-282-0/+6
| | | | | | | | | | | | Addresses the warning: WARNING: QA Issue: python3-native: configure was passed unrecognised options: --with-wctype-functions since this option was removed in python 3. (From OE-Core rev: f2879f3831ac86018e9526e34815f99eafe1ba82) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python: Backport CVE-2013-1752 fix from upstreamMaxin B. John2014-02-282-0/+102
| | | | | | | | | | This back ported patch fixes CVE-2013-1752 for smtplib (From OE-Core rev: 4af111e94edc93657c94de6b584c099571b4cf40) Signed-off-by: Maxin B. John <maxin.john@enea.com> Reviewed-by: Sona Sarmadi <sona.sarmadi@enea.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3: Fix race condition at high parallelism factorKhem Raj2014-02-283-0/+28
| | | | | | | | | | | | | | Backport a patch to fix race condition as reported here https://bugzilla.yoctoproject.org/show_bug.cgi?id=5884 [YOCTO #5884] (From OE-Core rev: 209a019b12f2941f8aefac9f192e9cdf691196e3) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* recipes: convert remaining SUMMARY/DESCRIPTION cosmetic issues (part 2)Matthieu Crapet2014-02-204-4/+4
| | | | | | | | | | | | | | | | | | Completes previous commit b5292d4115a4555a66b5e35acdc67dd71fb8577f. Updates SUMMARY[doc] (meta/conf/documentation.conf). Changes: - rename DESCRIPTION with length < 80 to (non present tag) SUMMARY - drop final point character at the end of SUMMARY string - remove trailing whitespace of SUMMARY line Note: don't bump PR (From OE-Core rev: ad17dfd31a2b97b3e610a0ea0889f5ecb2a63b97) Signed-off-by: Matthieu Crapet <Matthieu.Crapet@ingenico.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* meta/recipes: Remove virtclass referencesRichard Purdie2014-02-132-2/+2
| | | | | | | | | The virtclass overrides will go away at some point (apart from the multilib one). Change them all to class-xxx instead since people enjoy copy and pasting them. (From OE-Core rev: d1c073d2813bd913617990cd047507353ea0c09e) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-smartpm: really ignore conflicts during install with --attemptPaul Eggleton2014-02-111-13/+121
| | | | | | | | | | | | | | | | | | The original patch added in OE-Core commit bdf07b1698d228dc7ff555199a269b1ff8ceca19 was supposed to ignore conflicts, but it was unable to do so because it wasn't raising errors in the right place. When the --attempt option is used (as is done in complementary package installation for RPM), raise errors immediately on conflicts, catch errors at the right point so that requested packages and their dependencies can be ignored, and print appropriate warnings when doing so. Fixes [YOCTO #5313]. (From OE-Core rev: 210a426584b77ad2331332059af85bb9f4e2081f) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-pycurl: upgrade to 7.19.3Laurentiu Palcu2014-02-092-14/+16
| | | | | | | | | | | | | | Changes: * Refreshed no-static-link.patch; * LGPL&MIT license files changed names; * MIT license file added a contributor to the list; * README.rst license snippet changed to reflect the filename changes and the new contributor; (From OE-Core rev: b5b4898cd409036161c62891e9618d9ab3f891f9) Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-setuptools: Remove its provided by python-distributeKhem Raj2014-02-023-44/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | Use python-distribute-native in packagegroup-toolset-native Also fixes warnings like WARNING: The recipe python-setuptools is trying to install files into a shared area when those files already exist. Those files and their manifest location are: /srv/ssd/sgw/builds/world/tmp/sysroots/qemux86-64/usr/lib/python2.7/site-packages/setuptools.pth Matched in manifest-qemux86-64-python-distribute /srv/ssd/sgw/builds/world/tmp/sysroots/qemux86-64/usr/lib/python2.7/site-packages/site.pyc Matched in manifest-qemux86-64-python-distribute /srv/ssd/sgw/builds/world/tmp/sysroots/qemux86-64/usr/lib/python2.7/site-packages/site.py Matched in manifest-qemux86-64-python-distribute Conflicts: meta/recipes-devtools/python/python-setuptools_1.4.bb (From OE-Core rev: ddb0c70a7d4d51a1f404c194a562325137222146) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-distribute: Add recipes for python2 and python3Khem Raj2014-02-022-0/+94
| | | | | | | | | in python3-distribute rename easy_install to easy3_install (From OE-Core rev: 712d65335b9a92bba427949f8885102d0aefbeb4) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python_2.7.3.bb: Inherit python-dirKhem Raj2014-02-021-1/+1
| | | | | | | | | So it can get the correct python direcotries for python2 (From OE-Core rev: cfc780ec26474a61bd52a8f6a66c7280fa12a075) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3: Add target and native recipesKhem Raj2014-02-0228-0/+1636
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3.3.3 is latest bugfix release in 3.3 series License text is changed to reflect year and prev releases +++ ../Python-3.3.2/LICENSE 2013-05-15 09:32:54.000000000 -0700 @@ -74,7 +74,9 @@ 3.2.1 3.2 2011 PSF yes 3.2.2 3.2.1 2011 PSF yes 3.2.3 3.2.2 2012 PSF yes + 3.2.4 3.2.3 2013 PSF yes 3.3.0 3.2 2012 PSF yes + 3.3.1 3.3.0 2013 PSF yes Footnotes: @@ -110,8 +112,8 @@ distribute, and otherwise use Python alone or in any derivative version, provided, however, that PSF's License Agreement and PSF's notice of copyright, i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, -2011, 2012 Python Software Foundation; All Rights Reserved" are retained in Python -alone or in any derivative version prepared by Licensee. +2011, 2012, 2013 Python Software Foundation; All Rights Reserved" are retained +in Python alone or in any derivative version prepared by Licensee. We use native python in disutils bbclass and this needs to peek into target sysroot when building plugins in cross environment. Otherwise anything that inherits distutils3.bbclass will not build. Fix host include contamination issue Let compiler append sysroot to include path if it can Fix the compiler invocation and linker flags when cross compiling The details are in patch header. This should fix the QA errors about host contamination Add virtual/libintl to dep list There is use of libintl.h but we dont express the dependency Add lzma dependency for python3-misc Fixes and from test-dependencies.sh run there is undeterministic lzma dependency: WARN: packages/armv5te-oe-linux-gnueabi/python3/python3-misc/latest lost dependency on liblzma Fix staging warnings due to duplicate install WARNING: The recipe python3 is trying to install files into a shared area when those files already exist. Those files and their manifest location are: builds/world/tmp/sysroots/qemux86-64/usr/include/python3.3m/pyconfig.h builds/world/tmp/sysroots/qemux86-64/usr/lib/libpython3.3m.so.1.0 builds/world/tmp/sysroots/qemux86-64/usr/lib/libpython3.3m.so builds/world/tmp/sysroots/qemux86-64/usr/lib/python3.3/config/Makefile Let compiler search includes relative to sysroot This makes it cross compilable and assumption on hardcoded paths is fixed. Errors like below would appear if ncursesw is installed on build host cc1: warning: include location "/usr/include/ncursesw" is unsafe for cross-compilation [-Wpoison-system-directories] (From OE-Core rev: 185fcfc3286b355394ae89300f22b8cb7aaa43c1) Signed-off-by: Khem Raj <raj.khem@gmail.com> Fix linking not happening issue in modules We need to tweak CONFIGURE_LDFLAGS for python3 instead of LDFLAGS directly Add second compile stage which uses original makefile Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-3.3-manifest: Add python3 manifest fileKhem Raj2014-02-021-0/+260
| | | | | | | | | | | | | | | | | | | | Like python2 mostly except This will package collections into python3-core instead of python3-misc fixes errors like Traceback (most recent call last): File "/usr/lib/python3.3/site.py", line 69, in import os File "/usr/lib/python3.3/os.py", line 659, in <module> from collections.abc import MutableMapping ImportError: No module named 'collections' (From OE-Core rev: e314404876e62c05c7ea5f5e79b2b05c3ed9ab84) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-numpy: don't search host directories for librariesRoss Burton2014-01-282-0/+58
| | | | | | | | | | The build process hard-codes searches of various directories in /usr when looking for libraries, delete this to avoid host contamination. (From OE-Core rev: 9febe2d184ef76b7cacace15cbe17968e8c37617) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-nose: don't install as an EggRoss Burton2014-01-141-1/+1
| | | | | | | | | | Nose is installed as an Egg by default which we don't want, so change the inherit to setuptools from distutils to disable the eggification. (From OE-Core rev: 47a07c42f5f67dcf69f844531f7a527029e6280e) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-nose: Add BBCLASSEXTEND for native/nativesdkRichard Purdie2014-01-141-0/+2
| | | | | | | | Without this, nativesdk-python-numpy doesn't build. (From OE-Core rev: 78711c887520c88d733182a80edac49650a7e94f) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
OpenPOWER on IntegriCloud