Skip to content

Commit

Permalink
TST: Include *.pyx/*.pxd in final install for coverage
Browse files Browse the repository at this point in the history
If Cython coverage is requested, install the *pyx and *pxd files so that
coverage can report on them.
  • Loading branch information
aragilar committed Jan 11, 2019
1 parent 6f97e3e commit c3e2bfa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ def run(self):
else:
package_data = {'h5py': []}

if os.environ.get('CYTHON_COVERAGE'):
package_data['h5py'].extend(["*.pyx", "*.pxd"])

setup(
name = 'h5py',
version = VERSION,
Expand Down

0 comments on commit c3e2bfa

Please sign in to comment.