Skip to content

handle when same componentize-py.toml appears twice in PYTHON_PATH#52

Merged
dicej merged 2 commits intomainfrom
overlapping-paths
Jan 9, 2024
Merged

handle when same componentize-py.toml appears twice in PYTHON_PATH#52
dicej merged 2 commits intomainfrom
overlapping-paths

Conversation

@dicej
Copy link
Collaborator

@dicej dicej commented Jan 9, 2024

In this case, we need to decide which directory "owns" the file, which affects how we derive package names relative to that directory. For example, if both foo and foo/.venv/lib/python3.12/site-packages are in PYTHON_PATH, and we
find a componentize-py.toml file under the latter, then we'll also find it under the former. In that case, we consider the latter to be the "owner" of the file.

dicej added 2 commits January 9, 2024 11:28
In this case, we need to decide which directory "owns" the file, which affects
how we derive package names relative to that directory.  For example, if both
`foo` and `foo/.venv/lib/python3.12/site-packages` are in `PYTHON_PATH`, and we
find a componentize-py.toml file under the latter, then we'll also find it under
the former.  In that case, we consider the latter to be the "owner" of the file.

Signed-off-by: Joel Dice <joel.dice@fermyon.com>
Signed-off-by: Joel Dice <joel.dice@fermyon.com>
@dicej dicej merged commit d7eadf2 into main Jan 9, 2024
@dicej dicej deleted the overlapping-paths branch January 9, 2024 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant