summaryrefslogtreecommitdiffstats
path: root/Wrappers/Python/setup.py.in
diff options
context:
space:
mode:
authorEdoardo Pasca <edo.paskino@gmail.com>2018-01-23 17:30:20 +0000
committerEdoardo Pasca <edo.paskino@gmail.com>2018-01-23 22:45:21 +0000
commit20ca5ce5a1c23936d0ebf6d49cd80e90e81da7fe (patch)
tree4e5f5ccf61890404edec12d43bb2987902fcfbac /Wrappers/Python/setup.py.in
parent8935451cc1449570b485cd244ca564a17b80bfa2 (diff)
downloadregularization-20ca5ce5a1c23936d0ebf6d49cd80e90e81da7fe.tar.gz
regularization-20ca5ce5a1c23936d0ebf6d49cd80e90e81da7fe.tar.bz2
regularization-20ca5ce5a1c23936d0ebf6d49cd80e90e81da7fe.tar.xz
regularization-20ca5ce5a1c23936d0ebf6d49cd80e90e81da7fe.zip
Added conda recipe for FISTA
removed dangling files
Diffstat (limited to 'Wrappers/Python/setup.py.in')
-rw-r--r--Wrappers/Python/setup.py.in69
1 files changed, 0 insertions, 69 deletions
diff --git a/Wrappers/Python/setup.py.in b/Wrappers/Python/setup.py.in
deleted file mode 100644
index 12e8af1..0000000
--- a/Wrappers/Python/setup.py.in
+++ /dev/null
@@ -1,69 +0,0 @@
-#!/usr/bin/env python
-
-import setuptools
-from distutils.core import setup
-from distutils.extension import Extension
-from Cython.Distutils import build_ext
-
-import os
-import sys
-import numpy
-import platform
-
-cil_version=@CIL_VERSION@
-
-library_include_path = ""
-library_lib_path = ""
-try:
- library_include_path = os.environ['LIBRARY_INC']
- library_lib_path = os.environ['LIBRARY_LIB']
-except:
- library_include_path = os.environ['PREFIX']+'/include'
- pass
-
-extra_include_dirs = [numpy.get_include(), library_include_path]
-extra_library_dirs = [os.path.join(library_include_path, "..", "lib")]
-extra_compile_args = ['-fopenmp','-O2', '-funsigned-char', '-Wall', '-std=c++0x']
-extra_libraries = []
-extra_include_dirs += [os.path.join("@CMAKE_SOURCE_DIR@" , "main_func" , "regularizers_CPU"),
- os.path.join("@CMAKE_SOURCE_DIR@" , "main_func" , "regularizers_GPU") ,
- "@CMAKE_CURRENT_SOURCE_DIR@"]
-
-if platform.system() == 'Windows':
- extra_compile_args[0:] = ['/DWIN32','/EHsc','/DBOOST_ALL_NO_LIB' , '/openmp' ]
-
- if sys.version_info.major == 3 :
- extra_libraries += ['boost_python3-vc140-mt-1_64', 'boost_numpy3-vc140-mt-1_64']
- else:
- extra_libraries += ['boost_python-vc90-mt-1_64', 'boost_numpy-vc90-mt-1_64']
-else:
- if sys.version_info.major == 3:
- extra_libraries += ['boost_python3', 'boost_numpy3','gomp']
- else:
- extra_libraries += ['boost_python', 'boost_numpy','gomp']
-
-setup(
- name='ccpi',
- description='CCPi Core Imaging Library - Image Regularizers',
- version=cil_version,
- cmdclass = {'build_ext': build_ext},
- ext_modules = [Extension("ccpi.imaging.cpu_regularizers",
- sources=[os.path.join("@CMAKE_CURRENT_SOURCE_DIR@" , "fista_module.cpp" ),
- os.path.join("@CMAKE_SOURCE_DIR@" , "main_func" , "regularizers_CPU", "FGP_TV_core.c"),
- os.path.join("@CMAKE_SOURCE_DIR@" , "main_func" , "regularizers_CPU", "SplitBregman_TV_core.c"),
- os.path.join("@CMAKE_SOURCE_DIR@" , "main_func" , "regularizers_CPU", "LLT_model_core.c"),
- os.path.join("@CMAKE_SOURCE_DIR@" , "main_func" , "regularizers_CPU", "PatchBased_Regul_core.c"),
- os.path.join("@CMAKE_SOURCE_DIR@" , "main_func" , "regularizers_CPU", "TGV_PD_core.c"),
- os.path.join("@CMAKE_SOURCE_DIR@" , "main_func" , "regularizers_CPU", "utils.c")
- ],
- include_dirs=extra_include_dirs,
- library_dirs=extra_library_dirs,
- extra_compile_args=extra_compile_args,
- libraries=extra_libraries ),
-
- ],
- zip_safe = False,
- packages = {'ccpi','ccpi.imaging'},
-)
-
-