-
Notifications
You must be signed in to change notification settings - Fork 1
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
75825c8
commit 7a59d96
Showing
4 changed files
with
6,830 additions
and
396 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 |
---|---|---|
@@ -1,17 +1,22 @@ | ||
#!/usr/bin/env python | ||
from __future__ import absolute_import, division, print_function | ||
|
||
from numpy.distutils.core import Extension | ||
|
||
def configuration(parent_package='', top_path=None): | ||
from numpy.distutils.misc_util import Configuration | ||
config = Configuration('tspack', parent_package, top_path) | ||
config.add_extension('tspack', | ||
sources=['tspack.pyf', 'tspack.f']) | ||
return config | ||
# try: | ||
# from setuptools import setup, find_packages | ||
# except ImportError: | ||
# from distutils.core import setup | ||
|
||
ext1 = Extension(name='tspack', | ||
sources=['tspack.pyf', 'tspack.f']) | ||
|
||
if __name__ == '__main__': | ||
if __name__ == "__main__": | ||
from numpy.distutils.core import setup | ||
setup(description='Python wrapper to the Tension spline by Robert J. Renka', | ||
author='Chris Burns', | ||
author_email='[email protected]', | ||
**configuration(top_path='').todict()) | ||
setup(name='pytspack', | ||
description="Python interface to the fortran TSPACK", | ||
author="Barry Baker", | ||
author_email="[email protected]", | ||
license='MIT', | ||
ext_modules=[ext1] | ||
) |
Oops, something went wrong.