python bytecode not included in egg for capitalised extensions "*.Py"
I have a package which I distribute as a zipped egg. One of the python modules within the egg happens to have the extension ".Py" (capitalised, rather than lowercase ".py"). This doesn't not cause python any problems in importing the module. Nor does it prevent setuptools from creating an egg. The setuptools output for bdist_egg indicates that it find the module and even compiles it to a .pyc file. However, while the source code gets included in the egg, the bytecode file is omitted. This causes the module import to fail when the packages is installed in zipped egg form (because there is no bytecode and python can't add bytecode to a zip archive).
I think this is a bug in setuptools. It doesn't seem like there's any reason why the .pyc file shouldn't be included in the egg. If there is some reason, then setuptools should fail with an exception during the egg build process.
BTW. This is occuring on Windows. I haven't tested on linux or other platforms.