-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathsetup.py
61 lines (55 loc) · 1.89 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
"""
Setup script for the FlowUtils package
"""
from setuptools import setup, Extension
import numpy as np # NumPy is needed to build C extensions
# read in version string
VERSION_FILE = 'src/flowutils/_version.py'
__version__ = None # to avoid inspection warning and check if __version__ was loaded
exec(open(VERSION_FILE).read())
if __version__ is None:
raise RuntimeError("__version__ string not found in file %s" % VERSION_FILE)
with open("README.md", "r") as fh:
long_description = fh.read()
logicle_extension = Extension(
'flowutils.logicle_c',
sources=[
'src/flowutils/logicle_c_ext/_logicle.c',
'src/flowutils/logicle_c_ext/logicle.c'
],
include_dirs=[np.get_include(), 'src/flowutils/logicle_c_ext'],
extra_compile_args=['-std=c99']
)
gating_extension = Extension(
'flowutils.gating_c',
sources=[
'src/flowutils/gating_c_ext/_gate_helpers.c',
'src/flowutils/gating_c_ext/gate_helpers.c'
],
include_dirs=[np.get_include(), 'src/flowutils/gating_c_ext'],
extra_compile_args=['-std=c99']
)
setup(
name='FlowUtils',
version=__version__, # noqa PyTypeChecker
packages=['flowutils'],
package_dir={'': "src"},
package_data={'': []},
description='Flow Cytometry Standard Utilities',
long_description=long_description,
long_description_content_type="text/markdown",
author='Scott White',
author_email='[email protected]',
license='BSD',
url="https://github.com/whitews/flowutils",
ext_modules=[logicle_extension, gating_extension],
install_requires=['numpy>=1.20,<2'],
classifiers=[
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.7'
]
)