-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
58 lines (43 loc) · 1.59 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
#!/usr/bin/env python
from setuptools import setup, find_packages, Extension
from os import path
import sys
from Cython.Build import cythonize
import numpy as np
if sys.platform == "win32":
extensions = [
# Extension('problematic.radialprofile', ['src/radialprofile_cy.pyx'], include_dirs=[np.get_include()]),
Extension('problematic.get_score_cy', ['src/get_score_cy.pyx'], include_dirs=[np.get_include()]),
]
else:
extensions = [
# Extension('problematic.radialprofile', ['src/radialprofile_cy.pyx'], include_dirs=[np.get_include()]),
Extension('problematic.get_score_cy', ['src/get_score_cy.pyx'], include_dirs=[np.get_include()]),
]
ext_modules = cythonize(extensions)
setup(
name="problematic",
version="0.1.0",
description="Program for data analysis of serial electron diffraction data",
author="Stef Smeets",
author_email="s.smeets@esciencecenter.nl",
url="https://github.com/stefsmeets/problematic",
ext_modules = ext_modules,
classifiers=[
'Programming Language :: Python :: 3.6',
'License :: OSI Approved :: MIT License',
],
packages=["problematic",],
install_requires=["numpy", "scipy", "pandas", "scikit-image", "pyyaml", "lmfit", "cython", "h5py"],
package_data={
"": ["LICENCE", "readme.md", "setup.py"],
"problematic.orientations": ["*"]
},
include_package_data=True,
entry_points={
'console_scripts': [
'problematic.index = problematic.indexer_app:main',
'problematic.browser = problematic.browser:main',
]
}
)