wheel: Cannot exclude directory

Originally reported by: ijl (Bitbucket: ijl, GitHub: ijl)


I’m unable to exclude a directory ‘test’, using either MANIFEST.in or setup.py.

In MANIFEST.in, I have: recursive-exclude test *

In setup.py: packages=find_packages(exclude=['test', ]),

In each case, sdist correctly excludes the test directory, and bdist_wheel does not. The test directory is included in the wheel, and installed to site-packages at the first level, which is very undesirable.

Can you advise?


About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 20 (19 by maintainers)

Most upvoted comments

Original comment by Soeren Wolfers (Bitbucket: Bananach, GitHub: Bananach):


Using exclude=['test*'] solves the problem for me

Wheel does not even touch MANIFEST.in. Setuptools provides this information. Therefore this is not a wheel issue. Closing.