Skip to content

Commit

Permalink
Add ICU to include directories
Browse files Browse the repository at this point in the history
  • Loading branch information
AjayP13 committed Nov 13, 2018
1 parent da43004 commit 0bef633
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,14 @@ def get_modules(THIRD_PARTY, INTERNAL, PROJ_PATH,
SQLITE3 = THIRD_PARTY + '/sqlite3'
ICU_UNIX = SQLITE3 + '/icu_unix'
ICU_WIN32 = SQLITE3 + '/icu_win32'
includes = [os.path.relpath(SQLITE3, PROJ_PATH)]
libraries = [os.path.relpath(SQLITE3, PROJ_PATH)]
if sys.platform == 'win32':
libraries.append(ICU_WIN32)
includes.append(ICU_WIN32)
else:
libraries.append(ICU_UNIX)
includes.append(ICU_UNIX)

SQLITE_PRE = os.path.relpath(
os.path.join(SQLITE3, 'sqlite3.c.pre.c'), PROJ_PATH)
Expand Down Expand Up @@ -179,7 +182,7 @@ def get_modules(THIRD_PARTY, INTERNAL, PROJ_PATH,
pyinit_source = source_for_module_with_pyinit(module)
sqlite3 = Extension('sqlite3' + SO_SUFFIX,
sources=[SQLITE_POST] + [pyinit_source],
include_dirs=[os.path.relpath(SQLITE3, PROJ_PATH)],
include_dirs=includes,
library_dirs=libraries,
extra_compile_args=["-O4"],
extra_link_args=["-flto"])
Expand All @@ -196,10 +199,7 @@ def sqlite_extension(ext, skip=[], module=None):
ext,
'*.c')) if os.path.basename(g) not in skip] +
[pyinit_source]),
include_dirs=[
os.path.relpath(
SQLITE3,
PROJ_PATH)],
include_dirs=includes,
library_dirs=libraries,
extra_compile_args=["-O4"],
extra_link_args=["-flto"])
Expand All @@ -214,7 +214,7 @@ def sqlite_misc_extensions(skip=[]):
miscs.append(
Extension(module + SO_SUFFIX,
sources=[source] + [pyinit_source],
include_dirs=[os.path.relpath(SQLITE3, PROJ_PATH)],
include_dirs=includes,
library_dirs=libraries,
extra_compile_args=["-O4"],
extra_link_args=["-flto"]))
Expand Down
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version_info__ = ('0', '0', '29')
__version_info__ = ('0', '0', '30')
__version__ = '.'.join(__version_info__)

0 comments on commit 0bef633

Please sign in to comment.