-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
68 lines (63 loc) · 2.32 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import os
from setuptools import setup, find_packages
# Setup flags and parameters
pkg_name = 'nap' # top-level package name
scripts_dir = os.path.join(pkg_name, 'scripts') # useful executable scripts
do_install_scripts = False # enable this to install scripts in /usr/[local/]bin/
# Look for OpenCV
try:
import cv2
print "setup.py: [INFO] OpenCV version: {} (2.4.x+ should work fine)".format(cv2.__version__)
except ImportError:
print "setup.py: [WARNING] OpenCV library not found; please install from: http://opencv.org/"
# Cache readme contents for use as long_description
readme = open('README.md').read()
# Find executable scripts to be installed, if desired
scripts = []
if do_install_scripts:
if os.path.isdir(scripts_dir):
scripts = [os.path.join(scripts_dir, script) for script in os.listdir(scripts_dir) if script.endswith('.py') and not script == '__init__.py']
print "setup.py: [INFO] Scripts to be installed: {}".format(", ".join(scripts))
# Call setup()
setup(
name=pkg_name,
version='0.1',
description='Neurocognitive Action-Perception: A neuronal architecture for visual perception and embodied action.',
long_description=readme,
url='https://github.com/napratin/nap',
author='Arpan Chakraborty',
author_email='napratin@yahoo.co.in',
license='MIT',
packages=find_packages(),
scripts=scripts,
include_package_data=True,
package_data={
pkg_name: [
'logs/readme.txt',
'out/readme.txt'
]
},
zip_safe=False,
install_requires=[
'numpy',
'pyzmq'
],
test_suite=(pkg_name + '.tests'),
platforms='any',
keywords='computer vision active vision video camera image processing utilities tools codebase framework',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2.7',
'Operating System :: OS Independent',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'Topic :: Scientific/Engineering :: Image Recognition',
'Topic :: Multimedia :: Video :: Display',
'Topic :: Multimedia :: Video :: Capture',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Utilities'
])