Is it possible to set `--prefer-binary` for pip? T...
# general
h
Is it possible to set
--prefer-binary
for pip? The
only_binary
and
no_binary
options are great, but I'd love to more generally restrict the amount of CPU we're spending building from source. Finding these packages that are getting built from source can be challenging when a lot of third party deps are involved.
c
pex
does support this
--prefer-wheel, --prefer-binary, --no-prefer-wheel, --no-prefer-binary
Whether to prefer older binary distributions to newer source distributions (prefer not building wheels). (default: False)
however, I don't see that there is any option for this from
pants
to leverage that (yet..)
c
If you care to open a ticket I might be able to take a stab at it ~this month.