rename fused multiply add-like operations:
[sfpy.git] / setup.py
1 from distutils.core import setup
2 from distutils.extension import Extension
3 from Cython.Build import cythonize
4
5 posit_ext = Extension(
6 'sfpy.posit', ['sfpy/posit.pyx'],
7 include_dirs=['SoftPosit/source/include/'],
8 extra_objects=['./SoftPosit/build/Linux-x86_64-GCC/softposit.a'],
9 libraries=['m'],
10 )
11
12 float_ext = Extension(
13 'sfpy.float', ['sfpy/float.pyx'],
14 include_dirs=['berkeley-softfloat-3/source/include/'],
15 extra_objects=['./berkeley-softfloat-3/build/Linux-x86_64-GCC/softfloat.a'],
16 )
17
18 setup(
19 name='sfpy',
20 version='0.1.0',
21 description='softfloat and softposit in python',
22 author='Bill Zorn',
23 author_email='bill.zorn@gmail.com',
24 url='https://github.com/billzorn/sfpy',
25 packages=['sfpy'],
26 ext_modules=cythonize([posit_ext, float_ext]),
27 )