mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Issue #15560: Fix building _sqlite3 extension on OS X with an SDK.
This commit is contained in:
parent
e768c39890
commit
03e2180b3f
2 changed files with 6 additions and 4 deletions
|
@ -440,6 +440,8 @@ Tests
|
||||||
Build
|
Build
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
- Issue #15560: Fix building _sqlite3 extension on OS X with an SDK.
|
||||||
|
|
||||||
- Issue #8847: Disable COMDAT folding in Windows PGO builds.
|
- Issue #8847: Disable COMDAT folding in Windows PGO builds.
|
||||||
|
|
||||||
- Issue #14197: For OS X framework builds, ensure links to the shared
|
- Issue #14197: For OS X framework builds, ensure links to the shared
|
||||||
|
|
8
setup.py
8
setup.py
|
@ -981,12 +981,12 @@ class PyBuildExt(build_ext):
|
||||||
if sys.platform == 'darwin':
|
if sys.platform == 'darwin':
|
||||||
sysroot = macosx_sdk_root()
|
sysroot = macosx_sdk_root()
|
||||||
|
|
||||||
for d in inc_dirs + sqlite_inc_paths:
|
for d_ in inc_dirs + sqlite_inc_paths:
|
||||||
f = os.path.join(d, "sqlite3.h")
|
d = d_
|
||||||
|
|
||||||
if sys.platform == 'darwin' and is_macosx_sdk_path(d):
|
if sys.platform == 'darwin' and is_macosx_sdk_path(d):
|
||||||
f = os.path.join(sysroot, d[1:], "sqlite3.h")
|
d = os.path.join(sysroot, d[1:])
|
||||||
|
|
||||||
|
f = os.path.join(d, "sqlite3.h")
|
||||||
if os.path.exists(f):
|
if os.path.exists(f):
|
||||||
if sqlite_setup_debug: print("sqlite: found %s"%f)
|
if sqlite_setup_debug: print("sqlite: found %s"%f)
|
||||||
with open(f) as file:
|
with open(f) as file:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue