correcting use of uint32_t where uint64_t should be used
[sfpy.git] / setup.py
index 794896491adc1df27eb08fd373295a6e793350dd..335d62ee61cb3ee9ce7a324198691f7d2a735113 100644 (file)
--- 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',
+    ]
 )