So, I’m playing with pants, pex, and docker (while...
# general
d
So, I’m playing with pants, pex, and docker (while on vacation so I only have access to my personal OS X machine) - any tips on how to build cross-platform pexes? I’m not using any work source code so I should be able to get publicly accessible dependencies - right now my pex has some os x-specific wheels in
a
i think there is a good answer to your question, but i don't know it personally -- i see you've already posted in the #C087V4P1T channel recently, or i would have recommended that. if you don't get a response in the slack (there are a few people out this week) i might recommend filing a github issue so we can track it
and i distinctly remember other people asking about cross platform pexes using sqlalchemy at one point (or maybe i saw a stackoverflow post) so i suspect this is something that would be useful to support -- but i don't have much more context myself
d
Seems like the generally accepted solution is to download wheels on linux and store in a wheelhouse
then pass the wheelhouse to pants
🤷
a
is that how pants releases itself? i literally should know this, i can check the release script
d
that i don’t know, i kinda gave up since i’m supposedly on PTO
a
yeah haha was i think a question to myself oops
and yeah no worries (pto is important), i will try to find an answer for you though
d
preciate it
after 12 days i’m going stir crazy to know what’s going on back at the office 🙂
a
i've been out for 2 months with a slipped disk and they apparently just flipped my desk into a standing desk in 6 minutes this morning because i'm finally coming back next monday -- really ready to be back
d
bummer about the back
a
it let me focus real hard on getting the pants c/c++ support merged because i had literally nothing else to do and i couldn't lie on my back so like at least i was productive lol
d
ha
So working on getting pants to build c/c++ code?
that’d be awesome (though I only do python rn)
a
yeah, it's working now but only for
python_dist()
targets, we were gonna make some more noise about it once it gets built out more
d
so… buildin gpy extensions in C, not general C programs?
a
if you look at the OP of https://github.com/pantsbuild/pants/pull/5815 you can get an idea of where it's at now -- we're developing the 3rdparty deps story in parallel
not yet! but https://github.com/pantsbuild/pants/pull/5943 was just merged and that tests our toolchain end to end in osx and linux in ci for c/c++ executables and the only reason we're not doing general c programs yet is that we're (almost done!) supporting some ml work inside twitter which accesses c++ through ctypes
d
wow, slick
a
if i have my way it'll be developing p quickly and i'm really into documentation so it'll be accessible
i'm pumped
d
you guys write good PR descriptions - I’m learning something
a
it helps that we release oss pants first, then consume inside twitter, so the real work is all external and that makes everything better (twitter does this for almost everything and is one of the main reasons i wanted to work here)
i'm really glad they're good lol