Skip to content

Commit

Permalink
'updating'
Browse files Browse the repository at this point in the history
  • Loading branch information
bbakernoaa committed Apr 16, 2020
1 parent 75825c8 commit 7a59d96
Show file tree
Hide file tree
Showing 4 changed files with 6,830 additions and 396 deletions.
27 changes: 16 additions & 11 deletions setup.py
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]
)
Loading

0 comments on commit 7a59d96

Please sign in to comment.