Context
When using the pants (the build tool) to run mypy via pants check, pants builds a PEX file with all the third party python requirements.
I have scipy-stubs as a requirement, which pulls in optype[numpy], which pulls in numpy-typing-compat.
Problem
I'm consistently getting a [Errno 13] Permission denied failure that can be reproduced like so (pip install pex first):
% pex -o test_numpy_typing_compat.pex numpy_typing_compat==2.2.20250730
[Errno 13] Permission denied: '/Users/gregory.fast/Library/Caches/pex/installed_wheels/0/7d7639eafb5bc399650ae6d4baf441dfa0a40eb06965fd85e7f6d4dfe2e34ff7/numpy_typing_compat-2.2.20250730-py3-none-any.whl.2fceb7a263d2438b9c3370f5d033d9c0.work/numpy_typing_compat-2.2.20250730.dist-info/licenses/LICENSE'
gregory.fast@COMP-F4XYCW4R56 dd-analytics (gfast/DNAP-4050/create-pyspark-base-lib)
Inspecting the files in the wheel shows the LICENSE isn't readable
--w--wx--- 1 gregory.fast staff 1495 Aug 14 15:37 /Users/gregory.fast/Library/Caches/pex/installed_wheels/0/7d7639eafb5bc399650ae6d4baf441dfa0a40eb06965fd85e7f6d4dfe2e34ff7/numpy_typing_compat-2.2.20250730-py3-none-any.whl.2fceb7a263d2438b9c3370f5d033d9c0.work/numpy_typing_compat-2.2.20250730.dist-info/licenses/LICENSE
Context
When using the pants (the build tool) to run
mypyviapants check, pants builds a PEX file with all the third party python requirements.I have
scipy-stubsas a requirement, which pulls inoptype[numpy], which pulls innumpy-typing-compat.Problem
I'm consistently getting a [Errno 13] Permission denied failure that can be reproduced like so (
pip install pexfirst):Inspecting the files in the wheel shows the LICENSE isn't readable