-
Notifications
You must be signed in to change notification settings - Fork 48
/
setup.py
82 lines (75 loc) · 2.56 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# -*- coding: utf-8 -*-
from os import path
from setuptools import setup, find_packages
from setuptools.extension import Extension
from Cython.Build import cythonize
import numpy as np
import io
PACKAGE_NAME = 'pysaliency'
VERSION = '0.2.22'
DESCRIPTION = 'A Python Framework for Saliency Modeling and Evaluation'
AUTHOR = 'Matthias Kümmerer'
EMAIL = '[email protected]'
URL = "https://github.com/matthiask/pysaliency"
try:
this_directory = path.abspath(path.dirname(__file__))
with io.open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
except IOError:
long_description = ''
extensions = [
Extension("pysaliency.roc_cython", ['pysaliency/*.pyx'],
include_dirs = [np.get_include()],
extra_compile_args = ['-O3'],
#extra_compile_args = ['-fopenmp', '-O3'],
#extra_link_args=["-fopenmp"]
),
]
setup(
name = PACKAGE_NAME,
version = VERSION,
description = 'python library to develop, evaluate and benchmark saliency models',
long_description = long_description,
long_description_content_type='text/markdown',
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
#"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
#"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Topic :: Scientific/Engineering",
],
packages = find_packages(),
author = AUTHOR,
author_email = EMAIL,
url = URL,
license = 'MIT',
install_requires=[
'boltons',
'deprecation',
'dill',
'imageio',
'natsort',
'numba',
'numpy',
'piexif',
'requests',
'schema',
'scipy',
'setuptools',
'tqdm',
],
include_package_data = True,
package_data={'pysaliency': ['external_models/scripts/*.m',
'external_models/scripts/*/*.m',
'external_models/scripts/*/*/*',
'external_models/scripts/BMS/patches/*',
'external_models/scripts/GBVS/patches/*',
'external_models/scripts/Judd/patches/*',
'external_datasets/scripts/*.m'
]},
ext_modules = cythonize(extensions),
)