-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
49 lines (45 loc) · 1.66 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 python2
from setuptools import setup, find_packages, Extension
readme = """freemoovr python interface for calibrating and communicating with the freemoovr display_server"""
extension = Extension(name='freemoovr.geometry.arbitrary_geometry',
language='c++',
sources=[
'src/freemoovr/geometry/arbitrary_geometry.pyx',
'src/DisplaySurfaceArbitraryGeometry.cpp'
],
include_dirs=['src', 'include'],
libraries=[ # note: these aren't all required but they were all used in the cmake file...
'OpenThreads', 'osg', 'osgViewer',
'osgGA', 'osgDB', 'osgWidget',
'osgUtil', 'osgText', 'osgAnimation'
] # todo: only link against the ones we need.
)
pkgs = find_packages(where='src')
setup(name='freemoovr',
setup_requires=[
# Setuptools 18.0 properly handles Cython extensions.
'setuptools>=18.0',
'cython',
'numpy'
],
license='Commercial',
description='Loopbio freemoovr module',
version='1.0.0',
long_description=readme,
author='loopbio',
author_email='office@loopbio.com',
include_package_data=True,
packages=pkgs,
package_data={},
package_dir={'': 'src'},
ext_modules=[extension],
install_requires=[
'numpy',
# 'opencv-python<4',
'matplotlib',
'scipy',
'OpenEXR',
'evdev',
'pyzmq',
'Pillow'
])