libnetfilter_cthelper: add patch for uclinux tuple
[buildroot-gz.git] / package / python3 / python3-004-no-import-when-cross-compiling.patch
blobcd5a4374727eada85e9bc2d244d7aae4f28c671d
1 Disable import check when cross-compiling
3 Once Python has compiled an extension (i.e some C code, potentially
4 linked to a library), it tries to import it. This cannot work in
5 cross-compilation mode, so we just disable this check.
7 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
9 ---
10 setup.py | 4 ++++
11 1 file changed, 4 insertions(+)
13 Index: Python-3.3.0/setup.py
14 ===================================================================
15 --- Python-3.3.0.orig/setup.py
16 +++ Python-3.3.0/setup.py
17 @@ -318,6 +318,10 @@
18 self.announce('WARNING: skipping import check for Cygwin-based "%s"'
19 % ext.name)
20 return
21 + if os.environ.get('CROSS_COMPILING') == 'yes':
22 + self.announce('WARNING: skipping import check for cross compiled "%s"'
23 + % ext.name)
24 + return
25 ext_filename = os.path.join(
26 self.build_lib,
27 self.get_ext_filename(self.get_ext_fullname(ext.name)))