We discovered that this is not a regression. And I'm inclined to say that snapcraft shouldn't remove any directories from the source, even if they cause python to go crazy.
However, this could be a little uncomfortable. If you install your python module in the source dir, and it's the same source dir for the snap, you are likely to find this problem or some other worse. Maybe the python plugin could warn if it finds directories that will cause errors during install, or maybe we can force it to ignore these directories and install to $SNAPCRAFT_PART_INSTALL any way. Other ideas are welcome.
We discovered that this is not a regression. And I'm inclined to say that snapcraft shouldn't remove any directories from the source, even if they cause python to go crazy.
However, this could be a little uncomfortable. If you install your python module in the source dir, and it's the same source dir for the snap, you are likely to find this problem or some other worse. Maybe the python plugin could warn if it finds directories that will cause errors during install, or maybe we can force it to ignore these directories and install to $SNAPCRAFT_ PART_INSTALL any way. Other ideas are welcome.