DouDou commited on
Upload data2/step22/build.py with huggingface_hub
Browse files- data2/step22/build.py +18 -0
data2/step22/build.py
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
from tree_sitter import Language
|
| 3 |
+
|
| 4 |
+
# os.environ["CFLAGS"] = "-fPIC"
|
| 5 |
+
# os.environ["LDFLAGS"] = "-lstdc++"
|
| 6 |
+
|
| 7 |
+
Language.build_library(
|
| 8 |
+
"build/my-languages.so",
|
| 9 |
+
[
|
| 10 |
+
"grammars/tree-sitter-python",
|
| 11 |
+
"grammars/tree-sitter-c",
|
| 12 |
+
"grammars/tree-sitter-cpp",
|
| 13 |
+
"grammars/tree-sitter-java",
|
| 14 |
+
"grammars/tree-sitter-go",
|
| 15 |
+
"grammars/tree-sitter-rust",
|
| 16 |
+
"grammars/tree-sitter-julia",
|
| 17 |
+
]
|
| 18 |
+
)
|