-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·40 lines (34 loc) · 884 Bytes
/
setup.py
File metadata and controls
executable file
·40 lines (34 loc) · 884 Bytes
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
from setuptools import setup
from distutils.extension import Extension
import numpy as np
try:
from Cython.Build import cythonize
USE_CYTHON = True
except ImportError:
USE_CYTHON = False
print('using cython', USE_CYTHON)
ext = '.pyx' if USE_CYTHON else '.c'
extensions = [
Extension(
'circlehough.hough_transformation',
sources=['circlehough/hough_transformation'+ext],
),
]
if USE_CYTHON:
extensions = cythonize(extensions)
setup(
name="circlehough",
version='0.0.1',
description='Perform Hough transformation for circle',
url='https://github.com/Laurits7/circlehough',
author='Laurits Tani',
author_email='[email protected]',
licence='MIT',
packages=['circlehough'],
install_requires=[
'Cython',
'numpy',
],
ext_modules=extensions,
include_dirs=[np.get_include()],
)