move building directions out into separate file
[sfpy.git] / setup.py
1 import setuptools
2
3 posit_ext = setuptools.Extension(
4 'sfpy.posit', ['sfpy/posit.c'],
5 include_dirs=['SoftPosit/source/include/'],
6 extra_objects=['SoftPosit/build/Linux-x86_64-GCC/softposit.a'],
7 libraries=['m'],
8 )
9
10 float_ext = setuptools.Extension(
11 'sfpy.float', ['sfpy/float.c'],
12 include_dirs=['berkeley-softfloat-3/source/include/'],
13 extra_objects=['berkeley-softfloat-3/build/Linux-x86_64-GCC/softfloat.a'],
14 )
15
16 setuptools.setup(
17 name='sfpy',
18 version='0.1.0',
19 description='softfloat and softposit in python',
20 author='Bill Zorn',
21 author_email='bill.zorn@gmail.com',
22 url='https://github.com/billzorn/sfpy',
23 packages=['sfpy'],
24 ext_modules=[posit_ext, float_ext],
25 )