Spaces:
Running
Running
| """ | |
| Setup script for building Cython extensions. | |
| This setup.py is used to compile the fast_lcs Cython extension for | |
| improved LCS calculation performance. The main project metadata is | |
| in pyproject.toml. | |
| Usage: | |
| python setup.py build_ext --inplace | |
| """ | |
| import numpy | |
| from setuptools import Extension, setup | |
| from Cython.Build import cythonize | |
| setup( | |
| name="tibetan-text-metrics-webapp", | |
| version="0.4.0", | |
| author="Daniel Wojahn", | |
| author_email="daniel.wojahn@outlook.de", | |
| description="Cython LCS extension for Tibetan Text Metrics Webapp", | |
| url="https://github.com/daniel-wojahn/tibetan-text-metrics", | |
| ext_modules=cythonize( | |
| [ | |
| Extension( | |
| "pipeline.fast_lcs", | |
| ["pipeline/fast_lcs.pyx"], | |
| include_dirs=[numpy.get_include()], | |
| ) | |
| ], | |
| compiler_directives={"language_level": "3"} | |
| ), | |
| include_package_data=True, | |
| zip_safe=False, | |
| python_requires=">=3.10", | |
| install_requires=[ | |
| "numpy>=1.24", | |
| ], | |
| ) | |