Hello :slightly_smiling_face: Is there a way to pa...
# general
b
Hello πŸ™‚ Is there a way to package my code plus all dependencies in a folder or archive? I was looking at the archive target, but as I understood it, its not a package target itself and wont add dependencies. Sadly I cannot use PEX.
f
do you want to do it with Pants or you are happy to consider other options? πŸ™‚
b
We already have a quite extensive setup with pants, but outside solutions can also be considered πŸ™‚
f
I don’t have the whole picture of what you folks have, but you must be familiar with Pants enough, I assume. Are you sure you cannot use PEX? I mean PEX is an archive you can unpack with
tar
β€” here’s your folder with your code and all dependencies.
πŸ‘ 1
b
Ah cool, yes I also had that thought and I like that you kinda confirm that it might make sense. Thank you πŸ™‚
πŸ™Œ 1
h
*unpack with unzip. PEX is a zip file that's also executable
πŸ‘ 1
h
Yep, you can ignore the whole "executable" part of Pex, in which case it's just a zipfile
And you can build a pex that expands itself into a regular virtualenv, if that is more useful
So I'm interested to hear more about why PEX as-is doesn't work for you?