-
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
Installing from wheels. #76
Comments
Yes, you actually can, like so: [tool.poetry.dependencies]
my-package = { file = "path/to/wheel.whl" } |
Thanks a ton. I thought there had to be a way to do it manually. Could you give me a link to explain the .toml functionality or briefly explain it? I've read over the PEP, but I can't find any good tutorials. |
What do you want to know exactly? |
Everything. I want to know how it works. Is it like a .ini file? How can I figure out what headers to use to get special functionality? Is there a good tutorial on how to use .toml files for creating python packages? |
I just get random articles when I query it on google. Should I be looking at flit? https://github.com/takluyver/flit I just tried googling it again and I got some better results (my previous query must have been different). |
The PEP defining the The idea is that tools (like poetry) can define namespaced sections in the At this point, what is defined in these sections are up to the tools and is not specified in any PEP. So, poetry has its own specification and it's own sections. You can actually check out the documentation (https://poetry.eustace.io/docs/pyproject/) or the JSON Schema used for validation (https://github.com/sdispater/poetry/blob/master/poetry/json/schemas/poetry-schema.json) |
I'm running into an issue with wheels--I have prodigy defined in my pyproject.toml as:
(Previously I was using This used to work fine, but as of
|
This results in
with poetry 1.0.0b1 |
To update the solution,
|
Yes @ketozhang! Whenever they implemented that I celebrated lol. |
Just been through all that with xdg which conflicts with pyxdg. What finally worked was to download pyxdg-0.26-py2.py3-none-any.whl and install it with pip install. Poetry then ADDed python-xdg.whl. And, after two hours fiddling, from xdg import user_config_dir finally worked |
Im having an issue with installing a wheel with poetry. I follow the instructions available on https://python-poetry.org/docs/cli/#add OSwin 10 Home Edition Python version:3.8.3 Wheel packageGDAL-3.1.3-cp38-cp38-win_amd64.whl available on https://www.lfd.uci.edu/~gohlke/pythonlibs/#gdal i downloaded and wrote followed instructions on #1409 i also read #646 but im stuck. i Would appreciate some help. |
@hectorpatino try |
@hectorpatino & others who may want to install GDAL or another binary wheel from a URL. Be aware that some web servers may block downloads based on e.g. the User-Agent header. So, even if you are able to download the file manually from the link, you may still encounter problems with the poetry URL dependency, e.g. "404 Client Error: Not Found for url". A possible workaround is to download the wheels and host them on your own server/index (plays nicely with the original provider too). |
in case someone is on the same boat: I'm using [tool.poetry.dependencies]
apache-airflow = {path = "apache_airflow-2.1.3-py3-none-any.whl"} it works |
First try, so, appended below into pyproject.toml file
and, updated packages
Updating dependencies Writing lock file Package operations: 1 install, 0 updates, 0 removals • Installing mysqlclient (1.4.6 D:/pjt_py/ats_kw32/.venv/Lib/mysqlclient-1.4.6-cp39-cp39-win32.whl) after result, it worked fine.
|
Hi all, I have a question regarding providing wheels for different OS in However, if I now try to install my package on a different OS, it throws an error because the wheel is for Windows only. Is it possible to make the installation from a wheel optional (so that it only uses this option if the installation is done on a certain platform? Or is it possible to provide multiple wheels and it just tests all of them until one works? Thanks a lot in advance for your help! |
I'm trying to do this on Windows:
But nothing happens. I've tried changing the platform to |
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. |
I want to use pre-compiled binaries for windows, so I've installed a wheel from https://www.lfd.uci.edu/~gohlke/pythonlibs/#rpy2.
Can I set up poetry to install the wheel file that I've downloaded or can I point poetry to the website for installation?
The text was updated successfully, but these errors were encountered: