Hi. When using `pants package :main` i get a folde...
# general
f
Hi. When using
pants package :main
i get a folder rather than a file as the .pex. e..g:
Copy code
pants package :main
16:46:11.99 [INFO] Wrote dist/projects/main.pex
(base3.10) matt@DGX-2:~/mlcore$ ls -a dist/projects.flows.deframer/main.pex
.  ..  .bootstrap  .deps __main__.py __pex__  PEX-INFO
This is unexpected as before (possibly when i was on version 2.16.0), it created a file. Also the documentation suggests it will be a file. My BUILd contains this:
Copy code
pex_binary(
    name="main",
    entry_point="main.py",
)
This is causing an issue as i don't have an executable to run and the contents of .deps within the .pex directory contains wheels rather than the (expected) installed packages. Was this changed recently or have i made a mistake?
b
Tried to reproduce this with same version of pants but I get a binary executable (zipped folder). 🤔
f
that's so strange...
ok, I'll try and create a MWE and send back for you to try another.
👍 1
i worked it out, i had layout=packed as a default higher up