]> code.ossystems Code Review - openembedded-core.git/blob
0eb904a8a70383d210dbb61a3087f9462a2163c7
[openembedded-core.git] /
1 From e5e3196cf69172b625c8c6ccca991c02fd18137c Mon Sep 17 00:00:00 2001
2 From: Alexander Kanavin <alex.kanavin@gmail.com>
3 Date: Fri, 30 Dec 2016 18:02:12 +0200
4 Subject: [PATCH] setup.py: do not add include and library directories from the
5  host
6
7 This avoids host contamination.
8
9 Upstream-Status: Inappropriate [oe-core specific]
10 Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
11 ---
12  setup.py | 4 +---
13  1 file changed, 1 insertion(+), 3 deletions(-)
14
15 diff --git a/setup.py b/setup.py
16 index 7886cf7..9a0356a 100644
17 --- a/setup.py
18 +++ b/setup.py
19 @@ -31,9 +31,7 @@ packages = ["backports", "backports.lzma"]
20  home = os.path.expanduser("~")
21  extens = [Extension('backports/lzma/_lzma',
22                      ['backports/lzma/_lzmamodule.c'],
23 -                    libraries = ['lzma'],
24 -                    include_dirs = [os.path.join(home, 'include'), '/opt/local/include', '/usr/local/include'],
25 -                    library_dirs = [os.path.join(home, 'lib'), '/opt/local/lib', '/usr/local/lib']
26 +                    libraries = ['lzma']
27                      )]
28  
29  descr = "Backport of Python 3.3's 'lzma' module for XZ/LZMA compressed files."
30 -- 
31 2.11.0
32