-
Notifications
You must be signed in to change notification settings - Fork 21
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
1 parent
e31880e
commit 52f12ec
Showing
120 changed files
with
99 additions
and
69 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,73 @@ | ||
#!/usr/bin/env python | ||
|
||
#from setuptools import setup | ||
from setuptools import setup, Extension | ||
from distutils.sysconfig import get_config_var, get_config_vars | ||
from setuptools.command.build_ext import build_ext | ||
from subprocess import call | ||
import os | ||
import sys | ||
import glob | ||
|
||
# Bail on Python < 3 | ||
assert sys.version_info[0] >= 3 | ||
|
||
|
||
# MF. This is a workaround to be able to build the library with MacOS | ||
if sys.platform == 'darwin': | ||
vars = get_config_vars() | ||
vars['LDSHARED'] = vars['LDSHARED'].replace('-bundle','-dynamiclib') | ||
os.environ["CC"] = "clang" | ||
|
||
|
||
|
||
|
||
# NB. These are not really Python extensions (i.e., they do not | ||
# Py_Initialize() and they do define main() ), we are just cheating to | ||
# re-use the setuptools build support. | ||
|
||
libarlffi = Extension('libarlffi', | ||
sources = ['ffiwrappers/src/arlwrap.c', 'ffiwrappers/src/wrap_support.c', 'ffiwrappers/src/wrappingcore.c'], | ||
undef_macros = ['NDEBUG'], | ||
extra_compile_args = ['-Wno-strict-prototypes'], | ||
libraries= ['cfitsio'], | ||
optional=True, | ||
) | ||
|
||
packages = ['data_models', 'processing_library', 'processing_components', 'workflows', 'wrappers'] | ||
package_data = [i for p in packages for i in glob.glob(p+'/*/') + glob.glob(p+'/*/*/')] | ||
setup(name='algorithm-reference-library', | ||
version='0.9', | ||
python_requires='>=3', | ||
description='Algorithm Reference Library for Radio Interferometry', | ||
long_description=open('README.md').read(), | ||
author='Tim Cornwell, Peter Wortmann, Bojan Nikolic, Montse Farreras', | ||
author_email='realtimcornwell@gmail.com', | ||
url='https://github.com/SKA-ScienceDataProcessor/algorithm-reference-library', | ||
license='Apache License Version 2.0', | ||
packages=(packages + package_data), | ||
test_suite="tests", | ||
tests_require=['pytest'], | ||
ext_modules = [libarlffi] | ||
) | ||
|
||
|
||
# noinspection PyCompatibility | ||
class CFFIBuild(build_ext): | ||
def run(self): | ||
super().run() | ||
|
||
cmd = [ | ||
"make", | ||
"BUILD_LIB={}".format(self.build_lib) | ||
] | ||
|
||
call(cmd) | ||
|
||
#setup(name='FFI_Demo', | ||
# version='0.1', | ||
# python_requires='>=3', | ||
# description = "Demo for compilation of FFI-wrapped Python callable from C", | ||
# ext_modules = [libarlffi]) | ||
#, | ||
# cmdclass = {'build_ext': CFFIBuild}) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -1,73 +1,38 @@ | ||
#!/usr/bin/env python | ||
|
||
#from setuptools import setup | ||
from setuptools import setup, Extension | ||
from distutils.sysconfig import get_config_var, get_config_vars | ||
from setuptools.command.build_ext import build_ext | ||
from subprocess import call | ||
import glob | ||
import os | ||
import sys | ||
import glob | ||
from distutils.sysconfig import get_config_vars | ||
|
||
# from setuptools import setup | ||
from setuptools import setup | ||
|
||
# Bail on Python < 3 | ||
assert sys.version_info[0] >= 3 | ||
|
||
|
||
# MF. This is a workaround to be able to build the library with MacOS | ||
if sys.platform == 'darwin': | ||
vars = get_config_vars() | ||
vars['LDSHARED'] = vars['LDSHARED'].replace('-bundle','-dynamiclib') | ||
os.environ["CC"] = "clang" | ||
|
||
|
||
|
||
vars = get_config_vars() | ||
vars['LDSHARED'] = vars['LDSHARED'].replace('-bundle', '-dynamiclib') | ||
os.environ["CC"] = "clang" | ||
|
||
# NB. These are not really Python extensions (i.e., they do not | ||
# Py_Initialize() and they do define main() ), we are just cheating to | ||
# re-use the setuptools build support. | ||
|
||
libarlffi = Extension('libarlffi', | ||
sources = ['ffiwrappers/src/arlwrap.c', 'ffiwrappers/src/wrap_support.c', 'ffiwrappers/src/wrappingcore.c'], | ||
undef_macros = ['NDEBUG'], | ||
extra_compile_args = ['-Wno-strict-prototypes'], | ||
libraries= ['cfitsio'], | ||
optional=True, | ||
) | ||
|
||
packages = ['data_models', 'processing_library', 'processing_components', 'workflows', 'wrappers'] | ||
package_data = [i for p in packages for i in glob.glob(p+'/*/') + glob.glob(p+'/*/*/')] | ||
package_data = [i for p in packages for i in glob.glob(p + '/*/') + glob.glob(p + '/*/*/')] | ||
setup(name='algorithm-reference-library', | ||
version='0.9', | ||
python_requires='>=3', | ||
description='Algorithm Reference Library for Radio Interferometry', | ||
long_description=open('README.md').read(), | ||
author='Tim Cornwell, Peter Wortmann, Bojan Nikolic, Montse Farreras', | ||
author='Tim Cornwell, Peter Wortmann, Bojan Nikolic, Montse Farreras, Feng Wang', | ||
author_email='realtimcornwell@gmail.com', | ||
url='https://github.com/SKA-ScienceDataProcessor/algorithm-reference-library', | ||
license='Apache License Version 2.0', | ||
packages=(packages + package_data), | ||
test_suite="tests", | ||
tests_require=['pytest'], | ||
ext_modules = [libarlffi] | ||
tests_require=['pytest'] | ||
) | ||
|
||
|
||
# noinspection PyCompatibility | ||
class CFFIBuild(build_ext): | ||
def run(self): | ||
super().run() | ||
|
||
cmd = [ | ||
"make", | ||
"BUILD_LIB={}".format(self.build_lib) | ||
] | ||
|
||
call(cmd) | ||
|
||
#setup(name='FFI_Demo', | ||
# version='0.1', | ||
# python_requires='>=3', | ||
# description = "Demo for compilation of FFI-wrapped Python callable from C", | ||
# ext_modules = [libarlffi]) | ||
#, | ||
# cmdclass = {'build_ext': CFFIBuild}) |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
""" Algorithm Reference Library workflows | ||
""" | ||
__all__ = ['arlexecute', 'serial', 'ffiwrapped', 'mpi', 'scripts', 'shared'] | ||
__all__ = ['arlexecute', 'serial', 'scripts', 'shared'] |
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