-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
25 lines (20 loc) · 730 Bytes
/
setup.py
File metadata and controls
25 lines (20 loc) · 730 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
from setuptools import setup
def setup_VideoLensing():
setup(name='vidlens',
version='0.1',
description='A webcam-video simulation of gravitational lensing',
author='Sourabh Cheedella',
author_email='cheedella.sourabh@gmail.com',
install_requires=['numpy','scipy'],
extras_require ={
'gravpy': ['git+https://github.com/rirze/lens-solver.git']
'pyqt': ['qtpy']}
)
def test_for_python_opencv():
try:
import cv2
except:
raise ImportError("Could not find/import Python-OpenCV, make sure it's installed before running vidlens!")
if __name__ == '__main__':
setup_VideoLensing()
test_for_python_opencv()