-
Notifications
You must be signed in to change notification settings - Fork 17
/
setup_debug.py
41 lines (34 loc) · 1.22 KB
/
setup_debug.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
# -*- coding: utf-8 -*-
import setuptools
from distutils.core import setup, Extension
import numpy.distutils.misc_util
import os
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
exec(open("pystackreg/version.py").read())
setup(
name="pystackreg",
description="Python implementation of the ImageJ/FIJI Plugin TurboReg/StackReg",
long_description=read("README.rst"),
version=__version__, # type: ignore # noqa: F821
author="Gregor Lichtner (python/C++ port); TurboReg Author: Philippe Thévenaz, "
"Biomedical Imaging Group, Swiss Federal Institute of Technology Lausanne",
url="https://bitbucket.org/glichtner/pystackreg",
packages=["pystackreg"],
ext_modules=[
Extension(
"pystackreg.turboreg",
[
"src/pymain.cpp",
"src/TurboReg.cpp",
"src/TurboRegMask.cpp",
"src/TurboRegImage.cpp",
"src/TurboRegTransform.cpp",
"src/TurboRegPointHandler.cpp",
],
extra_compile_args=["-O0"],
)
],
include_dirs=["inc/"] + numpy.distutils.misc_util.get_numpy_include_dirs(),
install_requires=["numpy", "tqdm"],
)