This repository was archived by the owner on Jun 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
56 lines (50 loc) · 1.89 KB
/
Copy pathsetup.py
File metadata and controls
56 lines (50 loc) · 1.89 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
import setuptools
from setuptools.extension import Extension
import numpy as np
from Cython.Build import cythonize
from Cython.Compiler.Options import get_directive_defaults
directive_defaults = get_directive_defaults()
directive_defaults['linetrace'] = True
directive_defaults['binding'] = True
with open("README.md", "r") as f:
long_description = f.read()
with open("requirements.txt", "r") as f:
requirements = f.read().split("\n")
link_args = ["-std=c99"]
ext_modules = [
Extension("arcticpy.trap_managers_utils", ["arcticpy/trap_managers_utils.pyx"],
extra_compile_args=link_args,
extra_link_args=link_args,
include_dirs=[np.get_include()],
define_macros=[('CYTHON_TRACE', '1')],
language='c'),
Extension("arcticpy.main_utils", ["arcticpy/main_utils.pyx"],
extra_compile_args=link_args,
extra_link_args=link_args,
include_dirs=[np.get_include()],
define_macros=[('CYTHON_TRACE', '1')],
language='c'),
]
ext_modules = cythonize(
ext_modules, compiler_directives={'language_level': 3})
setuptools.setup(
name="arcticpy",
packages=setuptools.find_packages(),
version="1.1",
description="AlgoRithm for Charge Transfer Inefficiency Correction",
long_description=long_description,
long_description_content_type="text/markdown",
author="Jacob Kegerreis, Richard Massey, James Nightingale",
author_email="jacob.kegerreis@durham.ac.uk",
url="https://github.com/jkeger/arcticpy",
license="GNU GPLv3+",
classifiers=[
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
],
python_requires=">=3",
install_requires=requirements,
keywords=["charge transfer inefficiency correction"],
ext_modules=ext_modules,
)