-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
66 lines (62 loc) · 2.23 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
64
65
66
# -*- coding: utf-8 -*-
"""Setup configuration."""
import os
import numpy as np
from setuptools import Extension
from setuptools import find_packages
from setuptools import setup
try:
from Cython.Build import cythonize
except ImportError:
USE_CYTHON = False
else:
USE_CYTHON = True
ext = ".pyx" if USE_CYTHON else ".c"
extensions = [Extension("pulse3D.compression_cy", [os.path.join("src", "pulse3D", "compression_cy") + ext])]
if USE_CYTHON:
# cythonizing compression_cy.pyx with kwarg annotate=True will help when optimizing the code by enabling generation of the html annotation file
extensions = cythonize(extensions, annotate=False)
setup(
name="Pulse3D",
version="0.34.5",
description="Pulse3D Analysis Platform",
url="https://github.com/CuriBio/Pulse3D",
project_urls={"Documentation": "https://pulse3D.readthedocs.io/en/latest/"},
author="Curi Bio",
author_email="[email protected]",
license="MIT",
package_dir={"": "src"},
include_dirs=[np.get_include()],
packages=find_packages("src"),
install_requires=[
"h5py>=3.8.0",
"nptyping==1.4.4", # Tanner (4/7/22): pinning for now, can upgrade to 2.0.0 once there is time to refactor
"numpy>=1.23.4", # there is also a numpy version pinned in requirements-dev.txt since it is required to run this setup.py file
"scipy==1.9.3",
"numba==0.57.0",
"immutabledict>=1.2.0",
"XlsxWriter>=1.3.8",
"openpyxl>=3.0.7",
"stdlib_utils>=0.4.4",
"labware-domain-models>=0.3.1",
"semver>=2.13.0",
"pandas==1.5.3",
"pyarrow==12.0.0",
"structlog==23.2.0",
'importlib-metadata >= 3.7.3 ; python_version < "3.8"',
],
zip_safe=False,
include_package_data=True,
classifiers=[
"Development Status :: 1 - Planning",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering",
],
ext_modules=extensions,
)