move things into sfpy package
[sfpy.git] / setup.py
index 82b066dffc7aaf8a7c50cd96ac0b566970f76070..2aa76e2000fcfb20a16ff985d9d2742f9c8646ea 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,8 @@ from distutils.core import setup
 from distutils.extension import Extension
 from Cython.Build import cythonize
 
-ext = Extension('posit', ['posit.pyx'],
+posit_ext = Extension(
+    'sfpy.posit', ['sfpy/posit.pyx'],
     include_dirs=['SoftPosit/source/include/'],
     extra_objects=['./SoftPosit/build/Linux-x86_64-GCC/softposit.a'],
     libraries=['m'],
@@ -10,5 +11,11 @@ ext = Extension('posit', ['posit.pyx'],
 
 setup(
     name='sfpy',
-    ext_modules=cythonize([ext]),
+    version='0.1.0',
+    description='softfloat and softposit in python',
+    author='Bill Zorn',
+    author_email='bill.zorn@gmail.com',
+    url='https://github.com/billzorn/sfpy',
+    packages=['sfpy'],
+    ext_modules=cythonize([posit_ext]),
 )