<#20508 Issues building a PEX file that can run in...
# github-notifications
c
#20508 Issues building a PEX file that can run in different versions of Linux Issue created by foobar-coder When I build a pex file in one of the two O.S.s, I get wheel sub-directories that look like this:
Copy code
.deps/<dep name>-<dep version>-<python impl abbr><python version>-<abi>-manylinux_2_28_x86_64.whl
Whereas in the other OS, with exactly the same BUILD and requirement files I get something like this for the same dependency
Copy code
.deps/<dep name>-<dep version>-<python impl abbr><python version>-<abi>-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
The PEX file built in the first OS does not run in the second:
Copy code
pex.environment.ResolveError: A distribution for <dep name> could not be resolved in this environment.
Found 1 distribution for <dep name> that do not apply:
1.) The wheel tags for <dep name> <dep version> are
 <python impl abbr><python version>-<abi>-manylinux_2_28_x86_64
 which do not match the supported tags of DistributionTarget(interpreter=PythonInteentity(...
I tried using the attribute
pex_binary.platforms
but I cannot find the right strings to use. Can
pants
build a PEX file including dependencies for both
manylinux_2_17_x86_64
and
manylinux_2_28_x86_64
? If so, how? pantsbuild/pants