Skip to content

Commit

Permalink
[build] Restore installed c_api headers in the python wheel (taichi-d…
Browse files Browse the repository at this point in the history
…ev#6647)

Issue: #

### Brief Summary
The filter discarded our installed headers by accident, this PR restore
them so that nightly users can get both lib/ and include there.
  • Loading branch information
ailzhang authored Nov 17, 2022
1 parent 9c320cf commit bc08773
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,12 @@ def get_cmake_args():
return cmake_args


def exclude_paths(manifest_files):
# Control files to be included in package data
def cmake_install_manifest_filter(manifest_files):
return [
f for f in manifest_files
if f.endswith(('.so', 'pyd',
'.bc')) or os.path.basename(f) == 'libMoltenVK.dylib'
if f.endswith(('.so', 'pyd', '.bc', '.h',
'.hpp')) or os.path.basename(f) == 'libMoltenVK.dylib'
]


Expand Down Expand Up @@ -174,7 +175,7 @@ def exclude_paths(manifest_files):
},
classifiers=classifiers,
cmake_args=get_cmake_args(),
cmake_process_manifest_hook=exclude_paths,
cmake_process_manifest_hook=cmake_install_manifest_filter,
cmdclass={
'egg_info': EggInfo,
'clean': Clean
Expand Down

0 comments on commit bc08773

Please sign in to comment.