remove unneeded -lm option to gcc
[sfpy.git] / setup.py
1 import setuptools
2
3 with open('README.md', 'rt') as f:
4 long_description = f.read()
5
6 posit_ext = setuptools.Extension(
7 'sfpy.posit', ['sfpy/posit.c'],
8 include_dirs=['SoftPosit/source/include/'],
9 extra_objects=['SoftPosit/build/Linux-x86_64-GCC/softposit.a'],
10 )
11
12 float_ext = setuptools.Extension(
13 'sfpy.float', ['sfpy/float.c'],
14 include_dirs=['berkeley-softfloat-3/source/include/'],
15 extra_objects=['berkeley-softfloat-3/build/Linux-x86_64-GCC/softfloat.a'],
16 )
17
18 setuptools.setup(
19 name='sfpy',
20 version='0.4.3',
21 author='Bill Zorn',
22 author_email='bill.zorn@gmail.com',
23 url='https://github.com/billzorn/sfpy',
24 description='softfloat and softposit in python',
25 long_description=long_description,
26 long_description_content_type="text/markdown",
27 packages=['sfpy'],
28 ext_modules=[posit_ext, float_ext],
29 classifiers=[
30 'Development Status :: 4 - Beta',
31 'Operating System :: POSIX :: Linux',
32 'Programming Language :: Python :: 2.7',
33 'Programming Language :: Python :: 3.4',
34 'Programming Language :: Python :: 3.5',
35 'Programming Language :: Python :: 3.6',
36 'Programming Language :: Python :: 3.7',
37 'Programming Language :: Python :: Implementation :: CPython',
38 'License :: OSI Approved :: MIT License',
39 ]
40 )