Skip to content

Commit

Permalink
Exclude C, C++, and Cython sources from wheels
Browse files Browse the repository at this point in the history
This reduces the unzipped size of the package by 3.4 MB.
  • Loading branch information
lpsinger committed Mar 7, 2024
1 parent d549286 commit 8470ec7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ healpy = ["data/*.fits",
"test/data/*.fits.gz",
"test/data/*.sh"]

[tool.setuptools.exclude-package-data]
# Exclude C/C++/Cython source files from wheels.
"*" = ["*.cc", "*.cpp", "*.h", "*.pxd", "*.pyx"]

[tool.cibuildwheel]
# Skip PyPy builds; Astropy wheels are not built for PyPy.
# Skip i686 builds.
Expand Down

0 comments on commit 8470ec7

Please sign in to comment.