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>
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
18 self.announce('WARNING: skipping import check for Cygwin-based "%s"'
21 + if os.environ.get('CROSS_COMPILING') == 'yes':
22 + self.announce('WARNING: skipping import check for cross compiled "%s"'
25 ext_filename = os.path.join(
27 self.get_ext_filename(self.get_ext_fullname(ext.name)))