-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathsetup.py
54 lines (47 loc) · 1.65 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# -*- coding: utf-8 -*-
"""
:mod:`setup`
============
.. module:: setup
:platform: Unix, Windows
:synopsis: The Python Packaging setup file for Empyrean.
.. moduleauthor:: hbldh <[email protected]>
Created on 2015-09-17, 12:39
"""
from __future__ import division
from __future__ import print_function
from __future__ import absolute_import
from setuptools import setup, Extension, find_packages
import numpy
setup(
name='b2ac',
version='0.2.1',
author='Henrik Blidh',
author_email='[email protected]',
description='Python and C implementations of an ellipse fitting algorithm in double and fixed point precision.',
long_description="TBD",
license='MIT',
url='https://github.com/hbldh/b2ac',
packages=find_packages(),
install_requires=[line.strip() for line in open("requirements.txt")],
package_data={'b2ac.ext': [
'src/*',
'*.cfg',
'*.py']},
dependency_links=[],
ext_package='b2ac.ext',
ext_modules=[
Extension('ellipse_fitter',
sources=['b2ac/ext/src/ellipse_fitter.c',
'b2ac/ext/src/Eigenmethods_double.c',
'b2ac/ext/src/Eigenmethods_float.c',
'b2ac/ext/src/Eigenmethods_int.c',
'b2ac/ext/src/EllipseFit.c',
'b2ac/ext/src/EllipseFit_double.c',
'b2ac/ext/src/EllipseFit_float.c',
'b2ac/ext/src/EllipseFit_int.c',
],
include_dirs=[numpy.get_include(),
'b2ac/ext/src/']),
],
)