[pypy-issue] Issue #3140: distutils: install_headers doesn't give the package its own folder by default (pypy/pypy)

Peter Bell issues-reply at bitbucket.org
Wed Jan 1 10:18:59 EST 2020


New issue 3140: distutils: install_headers doesn't give the package its own folder by default
https://bitbucket.org/pypy/pypy/issues/3140/distutils-install_headers-doesnt-give-the

Peter Bell:

Running `pypy3 -m pip install pybind11` from a `conda` environment results in the headers being installed directly into `$CONDA_PREFIX/include`. Whereas for a CPython distribution, it would install to something like `$CONDA_PREFIX/include/python3.6m/pybind11`. With `pypy`'s defaults, this breaks the include paths for extensions. Also, since every library’s headers are dumped into the same folder, you end up with name collisions and files being overwritten. 

The defaults seem to all be configured in `distutils/command/install.py` , with the `'pypy'` scheme being the only broken one:

[https://bitbucket.org/pypy/pypy/src/73c04f01d5224a7c236d9f84e841483ec05f202a/lib-python/3/distutils/command/install.py#lines-46](https://bitbucket.org/pypy/pypy/src/73c04f01d5224a7c236d9f84e841483ec05f202a/lib-python/3/distutils/command/install.py#lines-46)




More information about the pypy-issue mailing list