Skip to content

Commit

Permalink
Remove unneeded setup_package.py files
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Feb 21, 2019
1 parent de590a0 commit 1b00153
Showing 1 changed file with 0 additions and 42 deletions.
42 changes: 0 additions & 42 deletions astropy/wcs/setup_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,47 +299,5 @@ def get_extensions():
return [Extension(str('astropy.wcs._wcs'), **cfg)]


def get_package_data():
# Installs the testing data files
api_files = [
'astropy_wcs.h',
'astropy_wcs_api.h',
'distortion.h',
'isnan.h',
'pipeline.h',
'pyutil.h',
'sip.h',
'util.h',
'wcsconfig.h',
]
api_files = [join('include', 'astropy_wcs', x) for x in api_files]
api_files.append(join('include', 'astropy_wcs_api.h'))

wcslib_headers = [
'cel.h',
'lin.h',
'prj.h',
'spc.h',
'spx.h',
'tab.h',
'wcs.h',
'wcserr.h',
'wcsmath.h',
'wcsprintf.h',
]
if not setup_helpers.use_system_library('wcslib'):
for header in wcslib_headers:
source = join('cextern', 'wcslib', 'C', header)
dest = join('astropy', 'wcs', 'include', 'wcslib', header)
if newer_group([source], dest, 'newer'):
shutil.copy(source, dest)
api_files.append(join('include', 'wcslib', header))

return {
str('astropy.wcs.tests'): ['extension/*.c'],
str('astropy.wcs'): api_files,
}


def get_external_libraries():
return ['wcslib']

0 comments on commit 1b00153

Please sign in to comment.