Skip to content

Commit

Permalink
Modify config
Browse files Browse the repository at this point in the history
  • Loading branch information
jklenzing committed May 13, 2022
1 parent 0d0d0fa commit 8c91abc
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion setup.py
Expand Up @@ -185,6 +185,17 @@ def run(self):
# Setup fortran extension
# ---------------------------------------------------------------------------


def configuration(parent_package='', top_path=None):
"""Point setup to the config file."""

from numpy.distutils.misc_util import Configuration
config = Configuration('pysatCDF', parent_package, top_path)
config.add_data_files('setup.cfg')

return config


ext1 = numpy.distutils.core.Extension(
name='pysatCDF.fortran_cdf',
sources=[os.path.join('pysatCDF', 'fortran_cdf.f')],
Expand All @@ -197,4 +208,5 @@ def run(self):

# Call setup
# --------------------------------------------------------------------------
numpy.distutils.core.setup(ext_modules=[ext1], cmdclass=cmdclass)
numpy.distutils.core.setup(ext_modules=[ext1], cmdclass=cmdclass,
configuration=configuration)

0 comments on commit 8c91abc

Please sign in to comment.