Re: [Distutils] Re: Linux binary wheels?

On Tue, Aug 20, 2019 at 6:14 AM Matthew Brett <matthew.brett@gmail.com> wrote:
Hard to argue with concrete data -- my bad! I wonder if there's an OS dependence here, though -- I'm almost certain I've had to use `--only-binary` in the past, to avoid pip on my Windows machines trying to download and build sdists, even when wheels were available.
Cheers,
Mattthew

On Tue, 20 Aug 2019 at 14:50, Brian Skinn <brian.skinn@gmail.com> wrote:
I wonder if there's an OS dependence here, though -- I'm almost certain I've had to use `--only-binary` in the past, to avoid pip on my Windows machines trying to download and build sdists, even when wheels were available.
Pip prefers newer versions over older ones. If there's a newer version with no binaries, pip will use the source for that version and try to build, even if there are older binaries. `--only-binary` would address that (although there is also a `--prefer-binary` flag in newer versions of pip, which is better suited to that situation). Paul

On Tue, 20 Aug 2019 at 14:50, Brian Skinn <brian.skinn@gmail.com> wrote:
I wonder if there's an OS dependence here, though -- I'm almost certain I've had to use `--only-binary` in the past, to avoid pip on my Windows machines trying to download and build sdists, even when wheels were available.
Pip prefers newer versions over older ones. If there's a newer version with no binaries, pip will use the source for that version and try to build, even if there are older binaries. `--only-binary` would address that (although there is also a `--prefer-binary` flag in newer versions of pip, which is better suited to that situation). Paul
participants (2)
-
Brian Skinn
-
Paul Moore