Skip to content

Wrong Python imports needed depending on pyproject.toml location #2475

Answered by messense
cocool97 asked this question in Q&A
Discussion options

You must be logged in to vote
  • If I put my pyproject.toml inside python_lib directory, imports are good for me from python_lib import Class1, Class2 but I can't embed source code from lib2 (seems to be chrooted at pyproject.toml location.

You don't need to embed source code from lib2 if it's a crates.io dependency, but if you want to embed it then it should be configured as a cargo path dependency.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cocool97
Comment options

Answer selected by cocool97
# for free to join this conversation on GitHub. Already have an account? # to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2474 on February 10, 2025 11:16.