-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
68 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
rm -rf build | ||
rm pystackreg/*.so | ||
python setup_debug.py build_ext --force --inplace --debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
rm -rf dist | ||
rm -rf build | ||
python setup.py build | ||
python setup.py sdist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# -*- 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__, | ||
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'] | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
CALL c:\ProgramData\Anaconda2\scripts\activate py27 | ||
rd /s/q build | ||
python setup.py build | ||
python setup.py bdist_wheel | ||
|
||
CALL c:\ProgramData\Anaconda2\scripts\activate py36 | ||
rd /s/q build | ||
python setup.py build | ||
python setup.py bdist_wheel | ||
|
||
CALL c:\ProgramData\Anaconda2\scripts\activate py27_32bit | ||
rd /s/q build | ||
python setup.py build | ||
python setup.py bdist_wheel | ||
|
||
CALL c:\ProgramData\Anaconda2\scripts\activate py36_32bit | ||
rd /s/q build | ||
python setup.py build | ||
python setup.py bdist_wheel |