Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f19529c

Browse files
committed
Fix cross compiling issue in setup.py, ensure that lib_dirs and inc_dirs are
defined in cross compiling mode, too.
1 parent 08d5ca6 commit f19529c

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,9 @@ Tests
316316
Build
317317
-----
318318

319+
- Fix cross compiling issue in setup.py, ensure that lib_dirs and inc_dirs are
320+
defined in cross compiling mode, too.
321+
319322
- Issue #16593: Have BSD 'make -s' do the right thing, thanks to Daniel Shahaf
320323

321324
- Issue #16262: fix out-of-src-tree builds, if mercurial is not installed.

setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,9 @@ def detect_modules(self):
506506
'/lib', '/usr/lib',
507507
]
508508
inc_dirs = self.compiler.include_dirs + ['/usr/include']
509+
else:
510+
lib_dirs = []
511+
inc_dirs = []
509512
exts = []
510513
missing = []
511514

0 commit comments

Comments
 (0)