1 from distutils
.core
import setup
2 from distutils
.extension
import Extension
3 from Cython
.Build
import cythonize
6 'sfpy.posit', ['sfpy/posit.pyx'],
7 include_dirs
=['SoftPosit/source/include/'],
8 extra_objects
=['./SoftPosit/build/Linux-x86_64-GCC/softposit.a'],
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'],
21 description
='softfloat and softposit in python',
23 author_email
='bill.zorn@gmail.com',
24 url
='https://github.com/billzorn/sfpy',
26 ext_modules
=cythonize([posit_ext
, float_ext
]),