-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from WFP-VAM/dev
Dev
- Loading branch information
Showing
9 changed files
with
82 additions
and
64 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
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 was deleted.
Oops, something went wrong.
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 @@ | ||
[build-system] | ||
requires = ["setuptools>=51.0.0", "wheel", "numpy>=1.15.1", "cython"] | ||
build-backend = "setuptools.build_meta" |
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 |
---|---|---|
@@ -1,20 +1,20 @@ | ||
#!/usr/bin/env python | ||
# pylint: disable=invalid-name, line-too-long | ||
"""setup.py for VAM whittaker core""" | ||
|
||
from setuptools import setup, Extension | ||
|
||
import numpy | ||
import _version | ||
USE_CYTHON = 'auto' | ||
|
||
USE_CYTHON = True # "auto" | ||
|
||
if USE_CYTHON: | ||
try: | ||
from Cython.Distutils import build_ext | ||
if USE_CYTHON == 'auto': | ||
|
||
if USE_CYTHON == "auto": | ||
USE_CYTHON = True | ||
except ImportError: | ||
if USE_CYTHON == 'auto': | ||
if USE_CYTHON == "auto": | ||
USE_CYTHON = False | ||
else: | ||
raise | ||
|
@@ -24,34 +24,28 @@ | |
|
||
if USE_CYTHON: | ||
ext_modules += [ | ||
Extension("vam.whittaker", | ||
["src/_whittaker.pyx"], extra_compile_args=["-O3", "-ffast-math"])] | ||
cmdclass.update({'build_ext': build_ext}) | ||
Extension( | ||
"vam.whittaker._whit", | ||
["vam/whittaker/_whittaker.pyx"], | ||
extra_compile_args=["-O3", "-ffast-math"], | ||
) | ||
] | ||
cmdclass.update({"build_ext": build_ext}) | ||
else: | ||
ext_modules += [ | ||
Extension("vam.whittaker", | ||
["src/_whittaker.c"], extra_compile_args=["-O3", "-ffast-math"])] | ||
Extension( | ||
"vam.whittaker._whit", | ||
["vam/whittaker/_whittaker.c"], | ||
extra_compile_args=["-O3", "-ffast-math"], | ||
) | ||
] | ||
|
||
setup( | ||
name='vam.whittaker', | ||
description='VAM whittaker core', | ||
version=_version.__version__, | ||
author='Valentin Pesendorfer', | ||
author_email='[email protected]', | ||
url='http://github.com/WFP-VAM/vam.whittaker', | ||
long_description='''State-of-the art whittaker smoother, implemented as fast C-extension through Cython and including a V-curve optimization of the smoothing parameter.\n\nFor more information, please visit: http://github.com/WFP-VAM/vam.whittaker''', | ||
include_dirs=[numpy.get_include()], | ||
cmdclass=cmdclass, | ||
ext_modules=ext_modules, | ||
classifiers=[ | ||
'Development Status :: 4 - Beta', | ||
'Programming Language :: Python :: 3', | ||
], | ||
setup_requires=['pytest-runner'], | ||
tests_require=['pytest'], | ||
install_requires=[ | ||
'numpy>=1.15.1', | ||
'mock;python_version<"3.0"' | ||
], | ||
python_requires='>=3, <4', | ||
setup_requires=["pytest-runner"], | ||
tests_require=["pytest"], | ||
install_requires=["numpy>=1.15.1", 'mock;python_version<"3.0"'], | ||
python_requires=">=3, <4", | ||
) |
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 @@ | ||
from ._version import __version__ | ||
from ._whit import lag1corr, ws2d, ws2dp, ws2doptv, ws2doptvp | ||
|
||
__all__ = ("__version__",) |
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 @@ | ||
__version__ = "2.0.2" |
File renamed without changes.