https://pantsbuild.org/ logo
r

rhythmic-morning-87313

06/02/2022, 1:28 PM
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

rhythmic-morning-87313

06/02/2022, 1:38 PM
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

enough-analyst-54434

06/02/2022, 1:42 PM
No. If you're using a lock file there is no escape hatch (partial lock). It's all or nothing.
r

rhythmic-morning-87313

06/02/2022, 5:22 PM
Fortunately, Google began to work on this issue: https://github.com/grpc/grpc/pull/29857 ....
4 Views