X-Git-Url: https://git.libre-soc.org/?p=sfpy.git;a=blobdiff_plain;f=setup.py;h=335d62ee61cb3ee9ce7a324198691f7d2a735113;hp=794896491adc1df27eb08fd373295a6e793350dd;hb=HEAD;hpb=03cecad0b5793eb349e5d9f07524583df5ba09b6 diff --git a/setup.py b/setup.py index 7948964..335d62e 100644 --- a/setup.py +++ b/setup.py @@ -1,27 +1,40 @@ -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'], +with open('README.md', 'rt') as f: + long_description = f.read() + +posit_ext = setuptools.Extension( + 'sfpy.posit', ['sfpy/posit.c'], include_dirs=['SoftPosit/source/include/'], - extra_objects=['./SoftPosit/build/Linux-x86_64-GCC/softposit.a'], - libraries=['m'], + extra_objects=['SoftPosit/build/Linux-x86_64-GCC/softposit.a'], ) -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', + version='0.4.3', author='Bill Zorn', author_email='bill.zorn@gmail.com', url='https://github.com/billzorn/sfpy', + description='softfloat and softposit in python', + long_description=long_description, + long_description_content_type="text/markdown", packages=['sfpy'], - ext_modules=cythonize([posit_ext, float_ext]), + ext_modules=[posit_ext, float_ext], + classifiers=[ + 'Development Status :: 4 - Beta', + 'Operating System :: POSIX :: Linux', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: Implementation :: CPython', + 'License :: OSI Approved :: MIT License', + ] )