-
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
Allow a folder with a list of wheels to be a repository, mimic pip --find-links #5983
Comments
duplicate #1391 |
This is not exactly a duplicate of #1391 I think, since the issue here is about handling local directories as places to look into for wheels, while #1391 was specifically about handling HTTP single page repositories. Unless Poetry supports that today (which I really don't think so), this does look like a valid feature request. |
Alternatively, having a ready made tool that takes a list of directories and generates an html file might fix this ? |
|
Unfortunately, that does not actually work for
references: psf/requests#2732 |
+1, this would be a useful feature for poetry when trying to build environments in high performance clusters that may prefer use of a local wheelhouse. |
Supporting this would effectively support the use-case where I want to mix a
|
This is not actually the same thing as path dependencies -- since the dependency would be by name, and not by literal file. It's an important distinction, though many users just use path dependencies as a poor man's substitute for a custom repo. |
We are really looking forward to this feature to build projects in isolated environments (zero-internet access) |
@neersighted - Would the project accept a PR for this issue? |
Similarly to @notkeo, we have to manage a python environment on a machine that is not connected to the internet for regulatory reasons. We'd like to move to |
If the only issue is a machine that is not connected to the internet, you can setup an internal package index, e.g. pypiserver, which just takes a folder with wheels as input. |
This assumes the availability of infrastructure to host such long-running server. That is not typically the case in a cluster. Plain POSIX storage is much simpler than servers. |
The vendoring mechanism we are talking about is actually very popular. For example, this functionality is built into
https://go.dev/ref/mod#go-mod-vendor So it would be very cool if this functionaliy appeared in poetry as well.
|
+1. Having this feature would've spared me the last few hours trying to use Poetry to replace my Pipenv workflow. |
+1 |
Why just not do it like normal beings are doing it:
where |
See post from mboisson. "... which is strictly HTTP, and does not support file:/// style URLs" |
But would that be a reason to close the this feature request? Does Poetry use pip behind the scenes who could do the heavy lifting? Or would you have to implement a separate handler for the |
+1 I'm also trying to install PyTorch XLA using Poetry but am finding it difficult due to |
This feature would make so much sense to simplify installation of local wheels per platform that GPT4o hallucinated it to me. |
+1 |
Feature Request
The
git --find-links
features allows one to add a folder with a set of wheels as a repository. One can also configure git to include a folder with wheels as a repo, like so:Could we have similar functionality for poetry? Have a feature that when the [[tool.poetry.source]] url is a local path like "/home/repo" or "C:\repo", or starts with "file://", then look for archives in that directory listing?
The git documentation for --find-links give a clear explanation of it's behavior:
The text was updated successfully, but these errors were encountered: