Upload evaluation/setup.py with huggingface_hub
Browse files- evaluation/setup.py +19 -0
evaluation/setup.py
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from setuptools import setup, Extension
|
| 2 |
+
from Cython.Build import cythonize
|
| 3 |
+
|
| 4 |
+
# Let Cython find and compile your .py files directly.
|
| 5 |
+
# This compiles both __init__.py and benchmark_utils.py
|
| 6 |
+
|
| 7 |
+
extensions = [
|
| 8 |
+
Extension("utils.__init__", ["utils/__init__.py"]),
|
| 9 |
+
Extension("utils.benchmark_utils", ["utils/benchmark_utils.py"]),
|
| 10 |
+
]
|
| 11 |
+
|
| 12 |
+
setup(
|
| 13 |
+
name="my_utils_package",
|
| 14 |
+
ext_modules=cythonize(
|
| 15 |
+
extensions,
|
| 16 |
+
# Tell Cython you're using Python 3 syntax
|
| 17 |
+
compiler_directives={'language_level' : "3"}
|
| 18 |
+
)
|
| 19 |
+
)
|