Include empty directory with python setup.py sdist

I have a Python package where I want to include an empty directory as part of the source distribution. I tried adding

include empty_directory

to file MANIFEST.in, but when I ran

python setup.py sdist

An empty directory is still not included. Any tips on how to do this?

+5
source share
1 answer

According to the documents :

  • include pat1 pat2 - include all files matching any of the listed templates
  • exclude pat1 pat2 - exclude all files matching any of the listed patterns
  • recursive-include dir pat1 pat2 - include all files in accordance with any of the listed templates
  • recursive-exclude dir pat1 pat2 - exclude all files in dir matching any of the listed patterns
  • global-include pat1 pat2 - -
  • global-exclude pat1 pat2 - -
  • prune dir -
  • graft dir -

, graft, include. , , . "empty.txt" - , .

+8

All Articles