Skip to content

Commit

Permalink
Fix packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed May 7, 2015
1 parent 88921fa commit c8b37b7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
4 changes: 3 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
include README.rst
include README.md
include CHANGES.md
include LICENSE

include ez_setup.py
include ah_bootstrap.py
Expand Down
20 changes: 15 additions & 5 deletions reproject/spherical_intersect/setup_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@


def get_extensions():
sources = [os.path.join(REPROJECT_ROOT, "_overlap.pyx")]
include_dirs = ['numpy']

libraries = []

sources.append("reproject/spherical_intersect/overlapArea.c")
sources.append("reproject/spherical_intersect/reproject_slice_c.c")
include_dirs.append('reproject/spherical_intersect')
sources = []
sources.append(os.path.join(REPROJECT_ROOT, "_overlap.c"))
sources.append(os.path.join(REPROJECT_ROOT, "overlapArea.c"))
sources.append(os.path.join(REPROJECT_ROOT, "reproject_slice_c.c"))

include_dirs = ['numpy']
include_dirs.append(REPROJECT_ROOT)

extension = Extension(
name="reproject.spherical_intersect._overlap",
Expand All @@ -22,3 +25,10 @@ def get_extensions():
extra_compile_args=['-O2'])

return [extension]


def get_package_data():

header_files = ['overlapArea.h', 'reproject_slice_c.h', 'mNaN.h']

return {'reproject.spherical_intersect': header_files}

0 comments on commit c8b37b7

Please sign in to comment.