ii-pix/setup.py

16 lines
366 B
Python
Raw Normal View History

2021-02-04 23:16:31 +00:00
from setuptools import setup, Extension
2021-01-12 00:27:03 +00:00
from Cython.Build import cythonize
2021-02-04 23:16:31 +00:00
import numpy
2021-01-12 00:27:03 +00:00
import Cython.Compiler.Options
Cython.Compiler.Options.annotate = True
2021-02-04 23:16:31 +00:00
extensions = [
Extension("dither", ["dither.pyx"], include_dirs=[numpy.get_include()])
]
2021-01-12 00:27:03 +00:00
setup(
2021-02-04 23:16:31 +00:00
name='dither',
ext_modules=cythonize(extensions),
script_args = ["build_ext", "--inplace"]
)