-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Description
-
I am on the latest Poetry version.
-
I have searched the issues of this repo and believe that this is not a duplicate.
-
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option). -
OS version and name:
debian:buster
in Docker -
Poetry version: 1.1.3
Issue
Hi,
Starting with some version poetry started to store pypi artifacts in ~/.cache/pypoetry/artifacts
, including wheels and source .tar.gz
distributions when there are no wheels on pypi.
Later poetry calls pip install
with an absolute path to those downloaded artifacts. However, in this mode pip does not look into its own cache for already built wheels and always rebuilds from source (it does store the resulting wheel in cache though).
When the package in question contains C extensions, for example, this behavior causes long build times. In my particular scenario, I run poetry install
a lot in CI jobs and I'd like to benefit from caching the already built wheels.
Is there anything that can be done to mitigate this?