change setup.py to use setuptools
authorBill Zorn <bill.zorn@gmail.com>
Thu, 9 Aug 2018 20:37:21 +0000 (13:37 -0700)
committerBill Zorn <bill.zorn@gmail.com>
Thu, 9 Aug 2018 20:37:21 +0000 (13:37 -0700)
setup.py

index 794896491adc1df27eb08fd373295a6e793350dd..53208a43c696ed97406d4c6b6e83e1d0d345242f 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -1,21 +1,20 @@
-from distutils.core import setup
-from distutils.extension import Extension
+import setuptools
 from Cython.Build import cythonize
 
-posit_ext = Extension(
+posit_ext = setuptools.Extension(
     'sfpy.posit', ['sfpy/posit.pyx'],
     include_dirs=['SoftPosit/source/include/'],
     extra_objects=['./SoftPosit/build/Linux-x86_64-GCC/softposit.a'],
     libraries=['m'],
 )
 
-float_ext = Extension(
+float_ext = setuptools.Extension(
     'sfpy.float', ['sfpy/float.pyx'],
     include_dirs=['berkeley-softfloat-3/source/include/'],
     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',