File tree Expand file tree Collapse file tree 3 files changed +13
-8
lines changed Expand file tree Collapse file tree 3 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ def get_sources():
2323 libvalkey_sources = (
2424 "alloc" ,
2525 "async" ,
26+ "conn" ,
2627 "dict" ,
2728 "net" ,
2829 "read" ,
@@ -40,9 +41,7 @@ def get_linker_args():
4041 if "win32" in sys .platform or "darwin" in sys .platform :
4142 return []
4243 else :
43- return [
44- "-Wl,-Bsymbolic" ,
45- ]
44+ return ["-Wl,-Bsymbolic" ]
4645
4746
4847def get_compiler_args ():
@@ -54,9 +53,7 @@ def get_compiler_args():
5453
5554def get_libraries ():
5655 if "win32" in sys .platform :
57- return [
58- "ws2_32" ,
59- ]
56+ return ["ws2_32" ]
6057 else :
6158 return []
6259
@@ -67,7 +64,14 @@ def get_libraries():
6764 extra_compile_args = get_compiler_args (),
6865 extra_link_args = get_linker_args (),
6966 libraries = get_libraries (),
70- include_dirs = ["vendor/libvalkey/include" , "vendor/libvalkey/include/valkey" ],
67+ include_dirs = [
68+ "vendor/libvalkey/include" ,
69+ "vendor/libvalkey/include/valkey" ,
70+ # We need to include the src directory because we are building libvalkey
71+ # from source and not using the pre-built library. Therefore, we need to
72+ # add the internal dependencies.
73+ "vendor/libvalkey/src" ,
74+ ],
7175)
7276
7377setup (
Original file line number Diff line number Diff line change 11#include "pack.h"
2+ #include "sds.h"
23
34#ifndef _MSC_VER
45#include <valkey/valkey.h>
You can’t perform that action at this time.
0 commit comments