summaryrefslogtreecommitdiff
path: root/meta/recipes-devtools/python
Commit message (Collapse)AuthorAgeFilesLines
* python: upgrade from 2.7.2 to 2.7.3Nitin A Kamble2012-05-036-75/+41
| | | | | | | | | | | | | | | bin/python2 link is provided by the python install process, so no need to create it. rebase these patches to the newer code: fix_for_using_different_libdir.patch 04-default-is-optimized.patch remove this patch as it is upstream now: sys_platform_is_now_always_linux2.patch Change default python version to 2.7.3 in the distro config Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
* python: Add patch to avoid warning about sunaudiodev moduleAndrei Gherzan2012-04-252-1/+25
| | | | | | | | | | sunaudiodev module is sunos specific so we avoid a warning by not. adding this module to missing variable. [YOCTO #1937] Signed-off-by: Andrei Gherzan <andrei@gherzan.ro> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python: Add patch to avoid warning about _tkinterAndrei Gherzan2012-04-252-1/+27
| | | | | | | | | | | _tkinter module needs tk module along with tcl. tk is not yet integrated in yocto so we skip the check for this module. Avoid a warning by not adding this module to missing variable. [YOCTO #1937] Signed-off-by: Andrei Gherzan <andrei@gherzan.ro> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python: Add patch to avoid warning about bsddb moduleAndrei Gherzan2012-04-252-1/+25
| | | | | | | | | | _bsddb module can be built only with db version between 4.1 and 4.7. Avoid a warning by not adding this module to missing variable. [YOCTO #1937] Signed-off-by: Andrei Gherzan <andrei@gherzan.ro> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python: Add patch to search for db.h in inc_dirs and remove warningAndrei Gherzan2012-04-252-1/+42
| | | | | | | | | | | python should search for db.h in inc_dirs and not in a hardcoded path. If db.h is found but HASHVERSION is not 2 we avoid a warning by not. adding this module to missing variable. [YOCTO #1937] Signed-off-by: Andrei Gherzan <andrei@gherzan.ro> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python: Add patch for 64bit platformAndrei Gherzan2012-04-252-1/+59
| | | | | | | | | | | | | This patch was added for 64bit host machines. In the compile process python is checking if platform is a 64bit platform using sys.maxint which is the host's value. The patch fixes this issue so that python would check if TARGET machine is 64bit not the HOST machine. In this way will have "dl" and "imageop" modules built if HOST machine is 64bit but the target machine is 32bit. [YOCTO #1937] Signed-off-by: Andrei Gherzan <andrei@gherzan.ro> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python: use PKGSUFFIX for libpython2Andreas Oberritter2012-04-241-3/+6
| | | | | | | | | | | * python-nativesdk shouldn't provide libpython2, but libpython2-nativesdk. Signed-off-by: Andreas Oberritter <obi@opendreambox.org> [PR Bump - sgw] Signed-off-by: Saul Wold <sgw@linux.intel.com>
* python: Fix various contamination issues leading to broken/missing c modulesRichard Purdie2012-04-233-7/+76
| | | | | | | | | | | | | | | | | | | The move of libcrypto to /lib instead of /usr/lib has broken the _hashlib module compilation. There were also a number of other failing modules which should have been building correctly. This turned out partly to be the /lib issue but also due to a number of native paths creeping into compiler commandlines. These changes add in /lib as part of the searh directory and remove a number of host contamination issues within setup.py. Post release we should really further go through this file and just delete large sections of it as its hard to be sure what strange paths python is injecting as search paths. This patch also fixes issues where re-execution of the compile task would corrupt the Makefile in various ways, again leading to puzzling paths within the configuration. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python: Fix re-execution problem due to patching configure and configure.inRichard Purdie2012-04-163-13/+2
| | | | | | | | | | | There was a patch patching both configure and configure.in. Since the recipes all autoreconf, this is pointless and means subsequent patch tasks fail. The fix is to only patch configure.in. [YOCTO #2194] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* PR bump packages with gdbm in DEPENDSAndrei Gherzan2012-04-131-1/+1
| | | | | | | | This is done because of this change in gdbm: "gdbm: Package compat libs in gdbm-compat" Signed-off-by: Andrei Gherzan <andrei@gherzan.ro> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python: multilib header support.Lianhao Lu2012-04-113-3/+5
| | | | | | | | Add intercept multilib header for pyconfig.h in python. This is part of the bug fixing [YOCTO #2216]. Signed-off-by: Lianhao Lu <lianhao.lu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python: Fix host contamination issueRichard Purdie2012-04-111-1/+4
| | | | | | | | | | | | | | | | | | python-nativesdk could fail with: | /srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-ppc/build/build/tmp/sysroots/x86_64-linux/usr/bin/python: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-ppc/build/build/tmp/work/x86_64-nativesdk-pokysdk-linux/python-nativesdk-2.7.2-r1.9/Python-2.7.2/libpython2.7.so.1.0) | make: *** [sharedmods] Error 1 which is caused by the fact LD_LIBRARY_PATH is being set to include WORKDIR when calling HOSTPYTHON. HOSTPYTHON is from python-native and needs no such help so the easiest fix here is not to set crazy LD_LIBRARY_PATH values since we should never be running anything from WORKDIR given the way we build things. The patch clears out the RUNSHARED variable which would contain the LD_LIBRARY_PATH value prior to this patch. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python: fix packaging dependencies on minimal systemsGary Thomas2012-03-262-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If you install the top-level python package only on a minimal system which has no other python packages installed then python is not functional at all. Without any extra packages installed this error is seen: # python Traceback (most recent call last): File "/usr/lib/python2.7/site.py", line 64, in <module> import traceback ImportError: No module named traceback Installing python-lang only partly fixes the problem as this error still exists: # python Traceback (most recent call last): File "/usr/lib/python2.7/site.py", line 569, in <module> main() File "/usr/lib/python2.7/site.py", line 551, in main known_paths = addusersitepackages(known_paths) File "/usr/lib/python2.7/site.py", line 278, in addusersitepackages user_site = getusersitepackages() File "/usr/lib/python2.7/site.py", line 253, in getusersitepackages user_base = getuserbase() # this will also set USER_BASE File "/usr/lib/python2.7/site.py", line 243, in getuserbase USER_BASE = get_config_var('userbase') File "/usr/lib/python2.7/sysconfig.py", line 520, in get_config_var return get_config_vars().get(name) File "/usr/lib/python2.7/sysconfig.py", line 400, in get_config_vars import re ImportError: No module named re Signed-off-by: Gary Thomas <gary@mlbassoc.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python: remove a target dependencyGary Thomas2012-03-231-1/+0
| | | | | | | | | The target dependency DEPENDS_sharprom does not belong in this core recipe and should be moved to a .bbappend file in the appropriate layer if still required. Signed-off-by: Gary Thomas <gary@mlbassoc.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-pycurl: fix packaging warningsNitin A Kamble2012-03-191-0/+4
| | | | | | | | | | | This commit fixes these packaging warnings: WARNING: For recipe python-pycurl, the following files/directories were installed but not shipped in any package: WARNING: /usr/share/share PR not bumber because no change in the output packages. Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
* python-pyrex: quite packaging warningsNitin A Kamble2012-03-191-1/+3
| | | | | | | | | | | | | | | This removes these packaging warnings: WARNING: For recipe python-pyrex, the following files/directories were installed but not shipped in any package: WARNING: /usr/share WARNING: /usr/share/lib WARNING: /usr/share/lib/python2.7 WARNING: /usr/share/lib/python2.7/site-packages WARNING: /usr/share/lib/python2.7/site-packages/Pyrex WARNING: /usr/share/lib/python2.7/site-packages/Pyrex/Compiler WARNING: /usr/share/lib/python2.7/site-packages/Pyrex/Compiler/Lexicon.pickle Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
* python: fix install when libdir is not "lib"Nitin A Kamble2012-03-192-0/+80
| | | | | | | This commit fixes python's install issue of not finding the native pythong binray modules. Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
* python-imaging: bring in fixes from meta-oePaul Eggleton2012-03-163-38/+61
| | | | | | | | | | | | | | | | This makes the following changes: * Replace the /usr/local/bin/python path in all scripts * Move RDEPENDS_${PN} to the end (but use += or we lose the python-core depencency). * Use PR = "r3" instead of "ml2". (Even without increasing the numeric part it is recognised as greater alphabetically.) * Bring in meta-oe version of the path patch which avoids the following warning: WARNING: python-imaging: The compile log indicates that host include and/or library paths were used. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
* python: regenerate python-2.7-manifest.incMartin Jansa2012-03-141-2/+2
| | | | | | | | | | | | * only manual change is extra line break in FILES_${PN}-core, because git send-email doesn't like long lines fatal: /tmp/0wfyzTvlIf/0001-python-regenerate-python-2.7-manifest.inc.patch: 30: patch contains a line longer than 998 characters * fixes PROVIDES and it will be easier to review next patch without this extra changes Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python: package static libraries correctly in -staticdevSaul Wold2012-03-142-2/+6
| | | | | WARNING: QA Issue: non -staticdev package contains static .a library: python-distutils path '/work/i586-poky-linux/python-2.7.2-r1.7/packages-split/python-distutils/usr/lib/python2.7/config/libpython2.7.a' Signed-off-by: Saul Wold <sgw@linux.intel.com>
* python, python-native: bump PRAndreas Oberritter2012-03-131-1/+1
| | | | Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
* python-native: distutils: don't use libdir, remove dead code pathAndreas Oberritter2012-03-131-3/+3
| | | | | | | | | | | | * Coming from OE-classic it was surprising that python-native now requires 'libdir' to be exported. Otherwise autoconf would fail to detect python libraries. This happend using a customized environment setup script to use OE's compiler and libs without bitbake. * Use STAGING_LIBDIR instead of libdir. * While at it, remove redundant 'and' statments. Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
* python: depend on bzip2Andreas Oberritter2012-03-131-1/+1
| | | | | | | | * Python auto-detects libbz2 and there's no way to force-disable it, so just enable it. * Adds bz2 support to python-compression. Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
* python: regenerate plat-linux2/*.pyAndreas Oberritter2012-03-131-0/+11
| | | | | | | | | | | | * If plat-linux2/DLFCN.py was present, python was broken in our image, i.e. it was unable to load many modules. This was due to changed RTLD_* constants in dlfcn.h * Python includes a script, plat-linux2/regen, to regenerate the py source codes in this directory. * Do what plat-linux2/regen would do, but use files from STAGING_INCDIR. Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
* python, python-native: always set platform to linux2Andreas Oberritter2012-03-135-19/+80
| | | | | | | | | | | * Fixes many problems with linux2 vs. linux3. At least: - Detected version was from build-host instead of target-host. - linuxaudiodev and ossaudiodev were disabled for linux3. - Files were missing in /usr/lib/python2.7/plat-linux3. * Imported from upstream HG rev c816479f6aaf * Bugtracker URL: http://bugs.python.org/issue12326 Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
* python-pycairo: Fix incorrect versions in license fieldRichard Purdie2012-03-131-2/+2
| | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* package.bbclass: Drop python depends from rpmdepsRichard Purdie2012-03-111-1/+1
| | | | | | | | | This python depends is added by rpmdeps every time it finds a python script. This is not necessary since we handle this in otherways. It also breaks things like nativesdk since the dependency is not renamed. The easiest solution is just to ignore this dependency. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* More quoting fixesMartin Jansa2012-02-262-2/+2
| | | | | | | | * We have various variables which are either not quoted at all or are half quoted. This patch fixes the bad exmaples so everything is consistent. Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python: add Makefile to SSTATE_SCAN_FILESMartin Jansa2012-02-231-0/+1
| | | | | | | | | | | | | | | | * it contains sysroot specific paths, this is from om-gta04 sysroot and notice nokia900 ./usr/lib/python2.7/config/Makefile:CC= arm-oe-linux-gnueabi-gcc -march=armv7-a -fno-tree-vectorize -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a8 -D__SOFTFP__ --sysroot=/OE/shr-core/tmp-eglibc/sysroots/nokia900 ./usr/lib/python2.7/config/Makefile:CXX= arm-oe-linux-gnueabi-g++ -march=armv7-a -fno-tree-vectorize -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a8 -D__SOFTFP__ --sysroot=/OE/shr-core/tmp-eglibc/sysroots/nokia900 ./usr/lib/python2.7/config/Makefile:LDFLAGS=-L. -L/OE/shr-core/tmp-eglibc/sysroots/nokia900/usr/lib -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed ./usr/lib/python2.7/config/Makefile:LIBDIR= /OE/shr-core/tmp-eglibc/sysroots/nokia900/usr/lib ./usr/lib/python2.7/config/Makefile:INCLUDEDIR= /OE/shr-core/tmp-eglibc/sysroots/nokia900/usr/include ./usr/lib/python2.7/config/Makefile:CONFIG_ARGS= '--build=x86_64-linux' '--host=arm-oe-linux-gnueabi' '--target=arm-oe-linux-gnueabi' '--prefix=/usr' '--exec_prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--libexecdir=/OE/shr-core/tmp-eglibc/sysroots/nokia900/usr/libexec' '--datadir=/usr/share' '--sysconfdir=/etc' '--sharedstatedir=/com' '--localstatedir=/var' '--libdir=/usr/lib' '--includedir=/OE/shr-core/tmp-eglibc/sysroots/nokia900/usr/include' '--oldincludedir=/usr/include' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--disable-silent-rules' '--disable-dependency-tracking' \ '--with-libtool-sysroot=/OE/shr-core/tmp-eglibc/sysroots/nokia900' '--with-threads' '--with-pymalloc' '--with-cyclic-gc' '--without-cxx' '--with-signal-module' '--with-wctype-functions' '--enable-shared' 'build_alias=x86_64-linux' 'host_alias=arm-oe-linux-gnueabi' 'target_alias=arm-oe-linux-gnueabi' 'CC=arm-oe-linux-gnueabi-gcc -march=armv7-a -fno-tree-vectorize -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a8 -D__SOFTFP__ --sysroot=/OE/shr-core/tmp-eglibc/sysroots/nokia900' 'CFLAGS=-O2 -pipe -g -feliminate-unused-debug-types' 'LDFLAGS=-L. -L/OE/shr-core/tmp-eglibc/sysroots/nokia900/usr/lib-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed' 'CPPFLAGS=' 'CPP=arm-oe-linux-gnueabi-gcc -E --sysroot=/OE/shr-core/tmp-eglibc/sysroots/nokia900 -march=armv7-a -fno-tree-vectorize -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a8 -D__SOFTFP__' ./usr/lib/python2.7/config/Makefile: $(RUNSHARED) /OE/shr-core/tmp-eglibc/sysroots/nokia900/usr/libexec/oah/translate ./$(BUILDPYTHON) -E -tt $(TESTPROG) -uall $(TESTOPTS) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* recipes: bump PR to rebuild .la files without libz.laMartin Jansa2012-02-212-2/+2
| | | | | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python: Fix build failure of python-elementtree on x86_64Khem Raj2012-02-072-1/+29
| | | | | | | | The problem is due to mixing of headers from host system thusly corrected in setup.py by checkinng if we are cross compiling Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python-dbus: upgrade from 0.84.0 to 1.0.0Nitin A Kamble2012-02-031-2/+2
| | | | | Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-native: RPROVIDE python-core-native since pycurl-native depends on itRichard Purdie2012-01-111-1/+1
| | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-pycairo: fix for x32Nitin A Kamble2012-01-061-3/+3
| | | | | | | | Add the libdir to configure so that path like /usr/libx32 can work. Also passing parallel make flags to the building process. Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
* native.bbclass: Fix variable remapping coverageRichard Purdie2012-01-051-0/+2
| | | | | | | | | | | | | | | When looking for RDEPENDS to process, bitbake iterates through PACKAGES *and* PN. Since native.bbclass sets PACKAGES to be empty, its pointless remapping the list of PACKAGES since this does nothing. There is a problem since *_${PN} are used by bitbake but not remapped by the native.bbclass class extension code. This changes the code to remap _${PN} in both expanded and unexpanded forms. As a result of this, various surprising dependencies are uncovered and the patch rectifies those. These are real bugs since they're injecting unneeded (unremapped) dependencies into the dependency chain. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-native: correct prefix handling for oe-core sysroot layoutPhil Blundell2012-01-052-14/+10
| | | | | | | | | | | Don't try to guess a path based on ${HOST_SYS} since this is not where the files in the sysroot are likely to be. Instead, just use the "plat_specific" approach of taking STAGING_INCDIR and knocking off the trailing "/include" for all cases. This is still evidently suboptimal but does at least seem to give the correct results. Signed-off-by: Phil Blundell <philb@gnu.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Add Upstream-Status to patchesSaul Wold2012-01-032-0/+6
| | | | Signed-off-by: Saul Wold <sgw@linux.intel.com>
* python: add md5module supportSaul Wold2012-01-033-3/+24
| | | | | | | The internal md5 module is needed for using "waf" to install other python packages such as pycairo. Signed-off-by: Saul Wold <sgw@linux.intel.com>
* python-pycairo: Upgrade to 1.10.0Saul Wold2011-12-212-31/+39
| | | | | | tweak the pycairo.pc correctly. Signed-off-by: Saul Wold <sgw@linux.intel.com>
* python: bump PR due to arm OVERRIDES changeMartin Jansa2011-12-131-1/+1
| | | | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* OECore license fixes: meta/*Elizabeth Flanagan2011-12-081-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | This is a quick audit of only the most obviously wrong licenses found within OECore. These fixes fall into four areas: - LICENSE field had incorrect format so that the parser choked - LICENSE field has a license with no version - LICENSE field was actually incorrect - LICENSE field has an imaginary license that didn't exist This fixes most of the LICENSE warnings thrown, along with my prior commit adding additional licenses to common-licenses and additional SPDXLICENSEMAP entries. HOWEVER..... there is much to be done on the license front. For a list of recipes with licenses that need obvious fixing see: https://wiki.yoctoproject.org/wiki/License_Audit That said, I would suggest another license audit as I've found enough inconsistencies. A good suggestion is when in doubt, look at how openSuse or Gentoo or Debian license the package. Signed-off-by: Elizabeth Flanagan <elizabeth.flanagan@intel.com>
* PR Bump for OpenSSL 1.0Saul Wold2011-11-301-1/+1
| | | | Signed-off-by: Saul Wold <sgw@linux.intel.com>
* python-native: Fix gcc compiler detecting logicKhem Raj2011-11-292-12/+12
| | | | | | | | | | | | | | | | | | | We have a patch unixccompiler.patch where we try to throw away everything except first element of CC string but this does not work if gcc is prepended with something e.g. CC="ccache gcc" then the logic fails and it ends up in some modules failing on you silently (_sqlite3) in my case. The fix here is to drop basename so we keep the whole string as it is and then the detection function searches for gcc string in the whole CC. This works in both cases one the original intent of the patch and the second described above. One place where it will fail is if someone has non-gcc compiler installed in some subdir which has gcc in it e.g. /usr/gcc/fakecc but for OE this should never happen. Ideally the the detection logic should have tried to execute gcc and then parsed --version output or something. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python-gst: upgrade from 0.10.21 to 0.10.22Nitin A Kamble2011-11-171-3/+3
| | | | | Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python: bump PRTom Zanussi2011-11-101-1/+1
| | | | | | | Commit 23d2eaf9 ('skip setup.py 'import check' when cross-compiling') neglected bumping the PR, this adds it. Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
* Convert to use direct access to the data store (instead of bb.data.*Var*())Richard Purdie2011-11-101-1/+1
| | | | | | | | | | | | | | | This is the result of running the following over the metadata: sed \ -e 's:bb.data.\(setVar([^,()]*,[^,()]*\), *\([^ )]*\) *):\2.\1):g' \ -e 's:bb.data.\(setVarFlag([^,()]*,[^,()]*,[^,()]*\), *\([^) ]*\) *):\2.\1):g' \ -e 's:bb.data.\(getVar([^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \ -e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \ -e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^() ]*\) *):\2.\1):g' \ -e 's:bb.data.\(getVar([^,()]*\), *\([^) ]*\) *):\2.\1):g' \ -i `grep -ril bb.data *` Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python: skip setup.py 'import check' when cross-compilingTom Zanussi2011-11-082-0/+32
| | | | | | | | | | | | | | | | | | | | | | | | | build_extension() in setup.py, as part of the build process, does an 'import check' on the built extension. The import check in turn dlopen()'s the shared library associated with the extension, which isn't something that makes sense if that library was cross-compiled for a different architecture. This was noticed with an x86_64 target that was compiled with avx support, because it caused 'illegal instruction' exceptions: | /bin/sh: line 1: 14575 Illegal instruction ... -E ./setup.py -q build For other target architectures, it doesn't necessarily cause illegal instruction exceptions, but still fails. For example, on arm, the failure pathway causes this warning: *** WARNING: renaming "cmath" since importing it failed: .../cmath.so: wrong ELF class: ELFCLASS32 This patch to setup.py and the associated recipe changes allow the whole 'import check' logic to be skipped when cross-compiling. Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
* python: improve packagingMartin Jansa2011-11-072-40/+25
| | | | | | | | | | | | | | | * move 2to3 to separate package and include lib2to3 (was in python-misc) * fix pattern for python-unittest (was in python-misc because it's in subdirectory now) * add pydoc_data to python-pydoc (was in python-misc) * add more stuff to smtpd, audio, codecs, ctypes, html, io, json, mime, pickle, stringold, xmlrpc * move all FILES_ details from python recipe to manifest generator so it's in one place * added manual line break in FILES_${PN}-core, because git send-email doesn't like too long lines $ git send-email -1 dfaae65839f0ab23e5b2ae2a68df0f370bca84d2 fatal: /tmp/k8zbDajUNP/0001-python-improve-packaging.patch: 64: patch contains a line longer than 998 characters Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* recipes: bump PR after python upgradeMartin Jansa2011-10-3113-12/+13
| | | | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* python-2.7.2: fix build issues when additional modules are linked against ↵Martin Jansa2011-10-311-0/+1
| | | | | | | | | host or native libpython instead of target * -L. is needed to find right libpython * -L${STAGING_LIBDIR} is needed ie for python-zlib to find right zlib Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>