[pypy-issue] Issue #2163: cannot create "wheels" with pypy on Windows (pypy/pypy)

Cosimo Lupo issues-reply at bitbucket.org
Wed Oct 7 18:07:08 CEST 2015

New issue 2163: cannot create "wheels" with pypy on Windows

Cosimo Lupo:

I cannot generate Python wheels with pypy 2.6.1 on Windows.

Whenever I try to do the usual `python setup.py bdist_wheel`, I get Windows `Error 32`.
This error is usually triggered when a file is already open by another process and thus is "locked" by the OS.

I'm not sure if this is a bug in pypy or in `wheel` package.
The fact that the same `bdist_wheel` command does not produce the error when running under CPython seems to point to pypy...

The `wheel` package provides a setuptools extension to create precompiled distributions. At line 383 of `bdist_wheel.py`, there's a call to `os.unlink` to delete a metadata file ("dependency_links.txt") if it is empty.
I think It's this which is causing the Error 32 (if I let it pass, the process completes just fine -- but of course I keep the empty file). 

Here is the last part of the `python setup.py bdist_wheel` log, from a project I'm working on:


Note that it happens with _any_ package I try to build wheels for -- not just the one in the example.

I wonder if anyone else has tried to create precompiled wheel packages with pypy on Windows.

Thanks for your support.


More information about the pypy-issue mailing list