-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsetup.py
More file actions
68 lines (61 loc) · 1.81 KB
/
setup.py
File metadata and controls
68 lines (61 loc) · 1.81 KB
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
from setuptools import setup, Extension, find_namespace_packages
from Cython.Build import cythonize
import io
import codecs
import os
import sys
import orb
import numpy
packages = find_namespace_packages(where=".")
here = os.path.abspath(os.path.dirname(__file__))
with io.open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
extensions = [
Extension(
"orb.cgvar",
[
"orb/cgvar.pyx"
],
include_dirs=[numpy.get_include()]
),
Extension(
"orb.cutils",
[
"orb/cutils.pyx"
],
include_dirs=[numpy.get_include()]
)
]
setup(
name='orb-kernel',
ext_modules=cythonize(extensions, language_level="2"),
version='3.0',
url='https://github.com/thomasorb/orb',
license='GPLv3+',
author='Thomas Martin',
author_email='thomas.martin.1@ulaval.ca',
maintainer='Thomas Martin',
maintainer_email='thomas.martin.1@ulaval.ca',
setup_requires=['cython', 'numpy', 'gvar'],
description='Kernel module for the reduction and analysis of SITELLE data',
long_description=long_description,
packages=packages,
package_dir={"": "."},
include_package_data=True,
package_data={
'':['LICENSE.txt', '*.rst', '*.txt', 'docs/*', '*.pyx', 'README.md'],
'orb':['data/*', '*.pyx']},
exclude_package_data={
'': ['*~', '*.so', '*.pyc', '*.c', 'orb/cgvar.c'],
'orb':['*~', '*.so', '*.pyc', '*.c']},
platforms='any',
scripts=[
'scripts/orb-convert',],
classifiers = [
'Programming Language :: Python',
'Programming Language :: Cython',
'Development Status :: 4 - Beta',
'Natural Language :: English',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Operating System :: OS Independent' ],
)