-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
63 lines (56 loc) · 1.96 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
from os.path import dirname, realpath, exists
from distutils.command.build import build
from setuptools import setup, find_packages
import sys
author = u"Paul Müller"
authors = [author]
description = 'library for analyzing spherical objects in phase imaging'
name = 'qpsphere'
year = "2017"
sys.path.insert(0, realpath(dirname(__file__))+"/"+name)
from _version import version # noqa: E402
class BuildIncludeBinaries(build):
"""Put binary files in resource directory for wheel builds"""
def run(self):
from qpsphere.util import download_binaries
download_binaries(package_dir=True)
# run the original build command
super(BuildIncludeBinaries, self).run()
setup(
name=name,
author=author,
author_email='[email protected]',
url='https://github.com/RI-imaging/qpsphere',
version=version,
packages=find_packages(),
package_dir={name: name},
# Note: package data are not included in the source distribution
# (manually excluded in MANIFEST.in)
package_data={"qpsphere": ['resources/*']},
cmdclass={"build": BuildIncludeBinaries},
license="MIT",
description=description,
long_description=open('README.rst').read() if exists('README.rst') else '',
install_requires=["appdirs",
"h5py>=2.7.0",
"lmfit",
"nrefocus>=0.1.5",
"numpy>=1.12.0",
"scikit-image>=0.11.0",
"scipy>=0.18.0",
"qpimage>=0.6.1",
],
python_requires='>=3.6, <4',
keywords=["digital holographic microscopy",
"optics",
"quantitative phase imaging",
"refractive index",
"scattering",
],
classifiers=[
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Intended Audience :: Science/Research'
],
platforms=['ALL'],
)