Added
Link Here
|
1 |
--- setup.py.orig 2023-01-08 10:03:32 UTC |
2 |
+++ setup.py |
3 |
@@ -22,7 +22,7 @@ if sys.version < '2.7': |
4 |
|
5 |
uclmodule = Extension( |
6 |
'ucl', |
7 |
- libraries=['ucl', 'curl'], |
8 |
+ libraries=['ucl', 'fetch'], |
9 |
sources=['python/src/uclmodule.c'], |
10 |
include_dirs=['include'], |
11 |
language='c', |
12 |
@@ -31,7 +31,7 @@ uclmodule = Extension( |
13 |
ucl_lib = { |
14 |
'sources': ['src/' + fn for fn in os.listdir('src') if fn.endswith('.c')], |
15 |
'include_dirs': ['include', 'src', 'uthash', 'klib'], |
16 |
- 'macros': [('CURL_FOUND', '1')], |
17 |
+ 'macros': [('HAVE_FETCH_H', '1')], |
18 |
} |
19 |
|
20 |
# sdist setup() will pull in the *.c files automatically, but not headers |
21 |
@@ -41,7 +41,7 @@ template = 'python/MANIFEST.in' |
22 |
# distutils assume setup.py is in the root of the project |
23 |
# we need to include C source from the parent so trick it |
24 |
in_ucl_root = 'setup.py' in os.listdir('python') |
25 |
-if in_ucl_root: |
26 |
+if not os.path.isfile('setup.py') and in_ucl_root: |
27 |
os.link('python/setup.py', 'setup.py') |
28 |
|
29 |
setup( |