Extending setuptools with finalize_distribution_options: How can I find the source directory #3959
Unanswered
jessie-ross
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I usually go with
If setuptools is being called to build |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there!
I'm trying to extend setuptools so it automatically brings in requirements from Pipfile.
I have it working but it's a bit hacky as I don't have a reliable reference to the source directory - I use the CWD, but that only works early on in the build with sdist, which is fine because the wheel gets built from the sdist.
Problems occur however if I try to install my package (pacakge A) locally from another package (package B), as the CWD will be set to package B.
The same issue occurs for setuptools_scm, and I believe it is causing other issues there.
In the
finalize_distribution_options
entry point all I have access to is thedist
object, is there a way I'm missing to get the source directory?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions