Skip to content

Commit

Permalink
Call setup function for win32.
Browse files Browse the repository at this point in the history
This was missing functionality noted in the original PR.

Issue 156
  • Loading branch information
steven-t-murphy authored and darvid committed Jan 10, 2025
1 parent 30c13f5 commit 1c43839
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,19 @@
print(f"WARNING: Folder '{build_folder}' does not exist! Run 'build.sh' in 'build_tools\\windows\\' first")
sys.exit(1)
# Note: paths must be relative to the setup.py and not absolute.
Extension(
"hyperscan._ext",
include_dirs=['src/hyperscan', r'./build_tools/windows/hyperscan/src',
r'./build_tools/windows/hyperscan/chimera',
r'./build_tools/windows/hyperscan/pcre-8.41'],
sources=["src/hyperscan/hyperscanmodule.c"],
library_dirs=[r'./build_tools/windows/hyperscan/build/lib/x64.Release'],
libraries=['hs', 'hs_runtime', 'chimera', 'pcre', 'sqlite3_static'],
extra_compile_args=["/Od", "/Zi"]
setup(
ext_modules=[
Extension(
"hyperscan._ext",
include_dirs=['src/hyperscan', r'./build_tools/windows/hyperscan/src',
r'./build_tools/windows/hyperscan/chimera',
r'./build_tools/windows/hyperscan/pcre-8.41'],
sources=["src/hyperscan/hyperscanmodule.c"],
library_dirs=[r'./build_tools/windows/hyperscan/build/lib/x64.Release'],
libraries=['hs', 'hs_runtime', 'chimera', 'pcre', 'sqlite3_static'],
extra_compile_args=["/Od", "/Zi"]
)
]
)

# Building on platform that is not Windows
Expand Down

0 comments on commit 1c43839

Please sign in to comment.