Skip to content

Commit 7e897d7

Browse files
authored
Merge pull request #34 from valkey-io/mkmkme/update-libvalkey
Update libvalkey
2 parents f506517 + 59c4e04 commit 7e897d7

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

setup.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff 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

4847
def get_compiler_args():
@@ -54,9 +53,7 @@ def get_compiler_args():
5453

5554
def 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

7377
setup(

src/pack.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include "pack.h"
2+
#include "sds.h"
23

34
#ifndef _MSC_VER
45
#include <valkey/valkey.h>

vendor/libvalkey

Submodule libvalkey updated 155 files

0 commit comments

Comments
 (0)