-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
33 lines (31 loc) · 750 Bytes
/
setup.py
File metadata and controls
33 lines (31 loc) · 750 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# setup.py
from setuptools import setup, Extension
from Cython.Build import cythonize
extensions = [
Extension(
name="fastmarc.reader",
sources=["fastmarc/reader.pyx"],
language="c",
extra_compile_args=["-O3"], # Optimize for speed
),
]
setup(
name="fastmarc",
version="0.1.0",
packages=["fastmarc"],
package_data={
"fastmarc": ["py.typed", "*.pyi"],
},
ext_modules=cythonize(
extensions,
compiler_directives={
"language_level": 3,
"boundscheck": False,
"wraparound": False,
"cdivision": True,
"initializedcheck": False,
},
),
install_requires=["pymarc>=5.1"],
zip_safe=False,
)