Q. How do I let Pants to install a specific packag...
# general
r
Q. How do I let Pants to install a specific package from a locally built wheels (e.g., "wheelhouse" directory) while fetching others from the PyPI? In other words, could I use something like pip's
--find-links
option? The reason is to install a custom built
grpcio
wheel on M1 Macs, because Google is distributing a x86-64 wheel file mislabeled as universal2 and this is breaking all gRPC-dependent codes in M1 Macs.
r
In this case, we are separately building the
grpcio
wheel file during installation and then invoking
pants
to do the rest. I'm concerned about building the wheel file individually by developers would make the lockfiles to be changed everytime they run the installation script. Could I make pants/pex to just refer a file without digest of it?
e
No. If you're using a lock file there is no escape hatch (partial lock). It's all or nothing.
r
Fortunately, Google began to work on this issue: https://github.com/grpc/grpc/pull/29857 ....