-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
40 lines (33 loc) · 1.16 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
from setuptools import setup, find_packages
from distutils.core import Extension
try:
import numpy as np
except ImportError or ModuleNotFoundError:
raise ImportError(
"Numpy has to be installed in order to install utils2p.\n"
+ "Please refer to the Numpy website for instructions on how to install it.\n"
)
with open("README.rst", "r") as fh:
long_description = fh.read()
external = Extension(
"utils2p.external.tifffile._tifffile",
sources=["utils2p/external/tifffile/tifffile.c"],
include_dirs=[np.get_include()],
)
setup(
name="utils2p",
version="1.0.2",
packages=["utils2p", "utils2p.external", "utils2p.external.tifffile"],
author="Florian Aymanns",
author_email="florian.aymanns@epfl.ch",
description="Basic utility functions for 2 photon image data generated using ThorImage and ThorSync.",
long_description=long_description,
long_description_content_type="text/x-rst",
url="https://github.com/NeLy-EPFL/utils2p",
install_requires=["numpy",
"pytest",
"scipy",
"h5py",
],
ext_modules=[external],
)