-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cross-Platform Dependency Resolution #7541
Comments
poetry already performs cross-platform dependency resolution if pip already does whatever it is you want - use pip for that! |
@dimbleby unfortunately pip isn’t able to override environment markers for conditional installs — pypa/pip#11664 Can you share a link for the poetry cross platform dependency resolution? |
I don't understand what you're asking for.
What do you mean? When poetry performs dependency resolution, it finds a cross-platform solution. The same poetry lockfile can be taken to any platform and used to install. perhaps |
The issue as written is already implemented by Poetry; Poetry was the first tool to do cross-platform dependency resolution and it's still at the core of Poetry. I'm going to close this as it's not actionable, but feel free to continue to discuss here, or convert this issue to a discussion, or join us on Discord. Please try to clarify what it is you are trying to do @SinOverCos; currently it does not make sense, and the linked pip issue doesn't make sense in terms of Poetry. Poetry is not pip, there are often no 1:1 analogies between the projects. |
My high-level goal is to answer this question: If I wanted to install package foo on a target system that e.g.
then what are the specific packages, dependencies, and transitive dependencies that will get installed (and is it install by source or via a specific wheel)? The answer to this query varies because some dependencies might only get installed for certain versions of python (e.g. backports), or for certain OSs (e.g. graphics libraries), etc. I want to be able to answer this query on my local machine for any values of $os, $ver, $impl, and $abi on a hypothetical target system, without having to actually e.g. build an image with those parameters and then running installation on that image to find out. Am I able to use poetry for something like this? |
Not directly
|
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Feature Request
Poetry is able to show the dependency tree of a package. It also supports conditional installs through environment markers. I'm wondering if it's possible to join these two features together to make poetry a cross-platform dependency resolver?
I am looking for something like pip's installation report, where pip can do a dry run of an installation and outputs the list of dependencies and transitive dependencies that would be installed for a given package. pip also supports passing in values for python version, abi version, platform, and implementation values so that the installation report represents what would've been installed for a target platform, instead of the current running python interpreter version and the host machine platform/os.
The text was updated successfully, but these errors were encountered: