-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Description
Environment
- pip version: 19.0.2
- Python version: 3.8.0a1
- OS: Linux
Description
In the PyO3 project, we have a test module nested inside the examples
folder that needs to build against the version of pyo3
in the repository, which is located in ../..
relative to the source root, because it's intended to test that version of PyO3. This is accomplished by specifying the path of the pyo3
root in Cargo.toml
.
The problem is that when using PEP 517, the build root gets moved out of the source tree (fair), and we no longer have a reliable way to specify a relative out-of-source dependency.
Given that this is a pretty unusual requirement, I'm going to investigate various ways to work around this from within setup.py
(maybe rewrite the Cargo.toml
file with an absolute file path as part of an sdist
build or write a custom PEP 517 backend), but I thought I'd bring it up as a potential incompatibility with PEP 517.
See PyO3/pyo3#362