X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=setup.py;h=65daf538f867b4e8c2487ac07c93e83f5e23f836;hb=baa24b1330359524e10f6d7b626f99795fc07018;hp=794896491adc1df27eb08fd373295a6e793350dd;hpb=f35c6aec3052d7fa5afd08de9f7621847239ad31;p=sfpy.git diff --git a/setup.py b/setup.py index 7948964..65daf53 100644 --- a/setup.py +++ b/setup.py @@ -1,21 +1,19 @@ -from distutils.core import setup -from distutils.extension import Extension -from Cython.Build import cythonize +import setuptools -posit_ext = Extension( - 'sfpy.posit', ['sfpy/posit.pyx'], +posit_ext = setuptools.Extension( + 'sfpy.posit', ['sfpy/posit.c'], include_dirs=['SoftPosit/source/include/'], - extra_objects=['./SoftPosit/build/Linux-x86_64-GCC/softposit.a'], + extra_objects=['SoftPosit/build/Linux-x86_64-GCC/softposit.a'], libraries=['m'], ) -float_ext = Extension( - 'sfpy.float', ['sfpy/float.pyx'], +float_ext = setuptools.Extension( + 'sfpy.float', ['sfpy/float.c'], include_dirs=['berkeley-softfloat-3/source/include/'], - extra_objects=['./berkeley-softfloat-3/build/Linux-x86_64-GCC/softfloat.a'], + extra_objects=['berkeley-softfloat-3/build/Linux-x86_64-GCC/softfloat.a'], ) -setup( +setuptools.setup( name='sfpy', version='0.1.0', description='softfloat and softposit in python', @@ -23,5 +21,5 @@ setup( author_email='bill.zorn@gmail.com', url='https://github.com/billzorn/sfpy', packages=['sfpy'], - ext_modules=cythonize([posit_ext, float_ext]), + ext_modules=[posit_ext, float_ext], )