Lines 1-9
Link Here
|
1 |
--- setup.py.orig 2020-11-22 14:19:41 UTC |
1 |
--- setup.py.orig 2022-01-08 16:20:10 UTC |
2 |
+++ setup.py |
2 |
+++ setup.py |
3 |
@@ -19,18 +19,6 @@ from setuptools.command.build_ext import build_ext as |
3 |
@@ -21,30 +21,6 @@ from subprocess import Popen |
4 |
from subprocess import Popen |
|
|
5 |
|
6 |
DIR = os.path.abspath(os.path.dirname(__file__)) |
4 |
DIR = os.path.abspath(os.path.dirname(__file__)) |
|
|
5 |
# NOTE: If you are editing the array below then you probably also need |
6 |
# to change MANIFEST.in. |
7 |
-LIB_OBJECTS = [ |
7 |
-LIB_OBJECTS = [ |
8 |
- 'core/desugarer.o', |
8 |
- 'core/desugarer.o', |
9 |
- 'core/formatter.o', |
9 |
- 'core/formatter.o', |
Lines 14-25
Link Here
|
14 |
- 'core/static_analysis.o', |
14 |
- 'core/static_analysis.o', |
15 |
- 'core/string_utils.o', |
15 |
- 'core/string_utils.o', |
16 |
- 'core/vm.o', |
16 |
- 'core/vm.o', |
17 |
- 'third_party/md5/md5.o' |
17 |
- 'third_party/md5/md5.o', |
|
|
18 |
- 'third_party/rapidyaml/rapidyaml/ext/c4core/src/c4/char_traits.o', |
19 |
- 'third_party/rapidyaml/rapidyaml/ext/c4core/src/c4/base64.o', |
20 |
- 'third_party/rapidyaml/rapidyaml/ext/c4core/src/c4/language.o', |
21 |
- 'third_party/rapidyaml/rapidyaml/ext/c4core/src/c4/memory_util.o', |
22 |
- 'third_party/rapidyaml/rapidyaml/ext/c4core/src/c4/format.o', |
23 |
- 'third_party/rapidyaml/rapidyaml/ext/c4core/src/c4/time.o', |
24 |
- 'third_party/rapidyaml/rapidyaml/ext/c4core/src/c4/memory_resource.o', |
25 |
- 'third_party/rapidyaml/rapidyaml/ext/c4core/src/c4/error.o', |
26 |
- 'third_party/rapidyaml/rapidyaml/src/c4/yml/parse.o', |
27 |
- 'third_party/rapidyaml/rapidyaml/src/c4/yml/preprocess.o', |
28 |
- 'third_party/rapidyaml/rapidyaml/src/c4/yml/common.o', |
29 |
- 'third_party/rapidyaml/rapidyaml/src/c4/yml/tree.o', |
18 |
-] |
30 |
-] |
19 |
|
31 |
|
20 |
MODULE_SOURCES = ['python/_jsonnet.c'] |
32 |
MODULE_SOURCES = ['python/_jsonnet.c'] |
21 |
|
33 |
|
22 |
@@ -46,19 +34,10 @@ def get_version(): |
34 |
@@ -60,19 +36,10 @@ def get_version(): |
23 |
v_code = v_code[1:] |
35 |
v_code = v_code[1:] |
24 |
return v_code |
36 |
return v_code |
25 |
|
37 |
|
Lines 35-46
Link Here
|
35 |
'_jsonnet', |
47 |
'_jsonnet', |
36 |
sources=MODULE_SOURCES, |
48 |
sources=MODULE_SOURCES, |
37 |
- extra_objects=LIB_OBJECTS, |
49 |
- extra_objects=LIB_OBJECTS, |
38 |
- include_dirs = ['include', 'third_party/md5', 'third_party/json'], |
50 |
- include_dirs = ['include'], |
39 |
+ libraries = ['jsonnet'], |
51 |
+ libraries = ['jsonnet'], |
40 |
language='c++' |
52 |
language='c++' |
41 |
) |
53 |
) |
42 |
|
54 |
|
43 |
@@ -68,9 +47,6 @@ setup(name='jsonnet', |
55 |
@@ -83,9 +50,6 @@ setup(name='jsonnet', |
44 |
author='David Cunningham', |
56 |
author='David Cunningham', |
45 |
author_email='dcunnin@google.com', |
57 |
author_email='dcunnin@google.com', |
46 |
version=get_version(), |
58 |
version=get_version(), |