blob: e99ad7a73144188d80cce51ae8f6d3dcac4a0e7d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
From ffb8d658042e698dced9be6fece1bcf3f5b62f68 Mon Sep 17 00:00:00 2001
From: Marc Kleine-Budde <mkl@pengutronix.de>
Date: Tue, 28 Apr 2009 19:08:19 +0200
Subject: [PATCH] setup.py: skip import check while cross compiling
during cross compilation we cannot import freshly for the target
compiled modules into the build python. This patch skips this check.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
---
setup.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/setup.py b/setup.py
index eacbbd8..7beb08b 100644
--- a/setup.py
+++ b/setup.py
@@ -267,6 +267,10 @@ class PyBuildExt(build_ext):
self.announce('WARNING: skipping import check for Cygwin-based "%s"'
% ext.name)
return
+ if os.environ.get('CROSS_COMPILING') == 'yes':
+ self.announce('WARNING: skipping import check for cross compiled "%s"'
+ % ext.name)
+ return
ext_filename = os.path.join(
self.build_lib,
self.get_ext_filename(self.get_ext_fullname(ext.name)))
--
1.5.6.3
|