Lines 1-16
Link Here
|
1 |
--- setup.py.orig 2021-03-28 15:11:23 UTC |
1 |
--- setup.py.orig 2024-07-19 12:05:48 UTC |
2 |
+++ setup.py |
2 |
+++ setup.py |
3 |
@@ -11,9 +11,10 @@ def version(): |
3 |
@@ -18,8 +18,7 @@ def get_sources(): |
4 |
return module.__version__ |
|
|
5 |
|
4 |
|
6 |
ext = Extension("hiredis.hiredis", |
5 |
|
7 |
- sources=sorted(glob.glob("src/*.c") + |
6 |
def get_sources(): |
8 |
- ["vendor/hiredis/%s.c" % src for src in ("alloc", "read", "sds")]), |
7 |
- hiredis_sources = ("alloc", "async", "hiredis", "net", "read", "sds", "sockcompat") |
9 |
- include_dirs=["vendor"]) |
8 |
- return sorted(glob.glob("src/*.c") + ["vendor/hiredis/%s.c" % src for src in hiredis_sources]) |
10 |
+ sources=sorted(glob.glob("src/*.c")), |
9 |
+ return sorted(glob.glob("src/*.c")) |
11 |
+ include_dirs=["%%LOCALBASE%%/include"], |
10 |
|
12 |
+ library_dirs=["%%LOCALBASE%%/lib"], |
11 |
|
13 |
+ libraries=["hiredis"]) |
12 |
def get_linker_args(): |
|
|
13 |
@@ -47,8 +46,9 @@ ext = Extension("hiredis.hiredis", |
14 |
sources=get_sources(), |
15 |
extra_compile_args=get_compiler_args(), |
16 |
extra_link_args=get_linker_args(), |
17 |
- libraries=get_libraries(), |
18 |
- include_dirs=["vendor"]) |
19 |
+ include_dirs=["/usr/local/include"], |
20 |
+ library_dirs=["/usr/local/lib"], |
21 |
+ libraries=["hiredis"]) |
14 |
|
22 |
|
15 |
setup( |
23 |
setup( |
16 |
name="hiredis", |
24 |
name="hiredis", |
17 |
- |
|
|