forked from matejak/imreg_dft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
60 lines (54 loc) · 1.85 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
# -*- coding: utf-8 -*-
import os
import sys
import setuptools as st
from io import open
# Fix so that the setup.py usage is CWD-independent
SETUPDIR = os.path.abspath(os.path.dirname(__file__))
SETUPDIR = os.path.dirname(__file__)
PKGDIR = os.path.join(SETUPDIR, 'src')
sys.path.append(PKGDIR)
import imreg_dft
reqsfname = os.path.join(SETUPDIR, 'requirements.txt')
reqs = open(reqsfname, 'r', encoding='utf-8').read().strip().splitlines()
descfname = os.path.join(SETUPDIR, 'doc', 'description.rst')
longdesc = open(descfname, 'r', encoding='utf-8').read()
st.setup(
name="imreg_dft",
version=imreg_dft.__version__,
author=u"Matěj Týč",
author_email="[email protected]",
description=("Image registration utility using algorithms based on "
"discrete Fourier transform (DFT, FFT)"),
license="BSD",
url="https://github.com/matejak/imreg_dft",
package_dir = {'': PKGDIR},
packages = st.find_packages(PKGDIR),
entry_points = {
'console_scripts': [
'ird = imreg_dft.cli:main',
'ird-tform = imreg_dft.tform:main',
'ird-show = imreg_dft.show:main',
],
},
install_requires=reqs,
extras_require={
'plotting': ["matplotlib>=1.2"],
'loading images': ["pillow>=2.2"],
'better performance': ["pyfftw>=0.9"],
},
classifiers=[
"Development Status :: 4 - Beta",
"Natural Language :: English",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Intended Audience :: Science/Research",
"Intended Audience :: Education",
"Topic :: Utilities",
"Topic :: Scientific/Engineering :: Image Recognition",
"Operating System :: OS Independent",
"License :: OSI Approved :: BSD License",
],
long_description=longdesc,
zip_safe=True,
)