-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathsetup.py
49 lines (45 loc) · 1.81 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
#!/usr/bin/env python3
from setuptools import setup, Extension
class get_numpy_include(object):
""" Defer numpy.get_include() until after numpy is installed. """
def __str__(self):
import numpy
return numpy.get_include()
if __name__ == '__main__':
setup(
name = "SimpleStereo",
version = "1.0.9",
author = "decadenza",
description = "Stereo vision made simple",
long_description = open("README.md").read(),
long_description_content_type = "text/markdown",
url = "https://github.com/decadenza/SimpleStereo",
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
],
setup_requires = [
'numpy>=1.19, <2',
],
install_requires = [
'numpy>=1.19, <2',
'opencv-contrib-python>=4.5',
'scipy>=1.4',
'matplotlib>=3',
],
ext_modules = [
Extension(
'simplestereo._passive',
['simplestereo/_passive.cpp'],
include_dirs=[get_numpy_include()],
extra_compile_args=["-std=c++11"]
),
Extension(
'simplestereo._unwrapping',
['simplestereo/_unwrapping.cpp'],
include_dirs=[get_numpy_include()],
extra_compile_args=["-std=c++11"]
),
],
)