[Cython] Python 3 wheels including bytecode files.

Stefan Behnel stefan_ml at behnel.de
Fri Oct 2 13:26:33 CEST 2015

Lisandro Dalcin schrieb am 02.10.2015 um 12:11:
> After getting AppVeyor to work, I noticed that Python 3 wheels do
> include __pycache__ directory. This also happens with in OS X as well
> as Linux.
> I think the root of the issue resides in setup.py, in the build_ext
> command class workaround that seems to be a legacy thing from the time
> Cython required 2to3. BTW, in setup.py, compile_cython_modules()
> follows quite a different path in Python 2 versus 3.

I already applied a change in master, would be worth seeing if that has an
effect here, too. There is certainly more that can be done. As you said,
this is legacy code (of a not so old legacy, though).

> Unless some of you believe we should keep things that way, I'll try to
> fix setup.py to be as much independent as possible of the major Python
> version.

Please do. :)


More information about the cython-devel mailing list