Merge branch 'master' of github.com:billzorn/sfpy
[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 setup(
13 name='sfpy',
14 version='0.1.0',
15 description='softfloat and softposit in python',
16 author='Bill Zorn',
17 author_email='bill.zorn@gmail.com',
18 url='https://github.com/billzorn/sfpy',
19 packages=['sfpy'],
20 ext_modules=cythonize([posit_ext]),
21 )