Skip to content

Relative/local paths for file:// -based dependencies #4221

Answered by abravalheri
sillydan1 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @sillydan1, right now this is a bit complicated because the setuptools project does not have control over the pyproject.toml specification and any significant change need to go through a PEP approval process (the same is valid for the dependency specifier syntax started by PEP508).

As far as I understand, the workarounds that you mentioned (template expansion as in {root:uri} or $PWD) are technically forbidden by the pyproject.toml standard. In particular, the spec says:

A build back-end MUST honour statically-specified metadata (which means the metadata did not list the key in dynamic).
...
If the metadata does not list a key in dynamic, then a build back-end CANNOT fill in the requi…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@sillydan1
Comment options

@abravalheri
Comment options

@sillydan1
Comment options

Answer selected by sillydan1
Comment options

You must be logged in to vote
2 replies
@sillydan1
Comment options

@webknjaz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants