Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 1 | From 1ea09e09ab2387c326bb7170835361ece6e25477 Mon Sep 17 00:00:00 2001 |
| 2 | From: Hongxu Jia <hongxu.jia@windriver.com> |
| 3 | Date: Mon, 3 Aug 2015 13:43:14 +0800 |
| 4 | Subject: [PATCH] setup.py.in: add missing python include dir for cross |
| 5 | compiling |
| 6 | |
| 7 | Upstream-Status: inappropriate [oe-core specific] |
| 8 | |
| 9 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> |
| 10 | --- |
| 11 | python/Makefile.am | 2 +- |
| 12 | python/setup.py.in | 3 ++- |
| 13 | 2 files changed, 3 insertions(+), 2 deletions(-) |
| 14 | |
| 15 | diff --git a/python/Makefile.am b/python/Makefile.am |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 16 | index 1d00c0c..52816b2 100644 |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 17 | --- a/python/Makefile.am |
| 18 | +++ b/python/Makefile.am |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 19 | @@ -14,7 +14,7 @@ all-local: |
| 20 | CFLAGS="${CFLAGS} -fno-strict-aliasing" @PYTHONBINARY@ setup.py build --build-base py$(PYTHONREV) |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 21 | |
| 22 | install-exec-local: |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 23 | - CFLAGS="${CFLAGS} -fno-strict-aliasing" @PYTHONBINARY@ setup.py build --build-base py$(PYTHONREV) install --prefix=${DESTDIR}${prefix} |
| 24 | + CFLAGS="${CFLAGS} -fno-strict-aliasing" @PYTHONBINARY@ setup.py build --build-base py$(PYTHONREV) install --prefix=${DESTDIR}${prefix} --install-lib=${DESTDIR}/${PYTHONSITEDIR} |
| 25 | |
| 26 | clean-local: |
| 27 | rm -rf py$(PYTHONREV) |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 28 | diff --git a/python/setup.py.in b/python/setup.py.in |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 29 | index a741b91..6759a95 100755 |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 30 | --- a/python/setup.py.in |
| 31 | +++ b/python/setup.py.in |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 32 | @@ -33,7 +33,7 @@ class sdist(_sdist): |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 33 | |
| 34 | pwqmodule = Extension('pwquality', |
| 35 | sources = ['pwquality.c'], |
| 36 | - include_dirs = ['../src'], |
| 37 | + include_dirs = ['../src', os.path.join(os.environ['STAGING_INCDIR'], os.environ['PYTHON_DIR'])], |
| 38 | library_dirs = ['../src/.libs'], |
| 39 | libraries = ['pwquality']) |
| 40 | |
| 41 | -- |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 42 | 2.17.1 |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 43 | |