Hey folks, I have been trying to get pants to buil...
# general
p
Hey folks, I have been trying to get pants to build me a hermetic pex binary, but it is not working for me. Specifically, I seem to be having some issues with the mysqlclient dependency that has some binary dependencies that are not being packaged. Is this meant to be supported in pants/pex?
h
Yes. If pip can resolve it, pex should be able to build it. We'd need more detail though. The gold standard would be a standalone tiny GitHub repo that reproduces the problem, if you have one.
p
ok, let me see if I can make a repo that demonstrates the issue
I have made a repo and push the specific crash message here: https://github.com/kuza55/pants_debug_mysql/issues/1
👀 1
I noted it on the bug, but it's Ubuntu on WSL -> Ubuntu
e
Yeah, that's a no go. PEX makes no attempt to scrape system lib dependencies and gather them into the PEX. I commented on the issue. You must ensure the MySQL client libraries are installed on each host the PEX will be run on.
f
Maybe consider whether using PyMySQL (pure Python MySQL client) is feasible or advised?