https://pantsbuild.org/ logo
#general
Title
# general
w

wooden-thailand-8386

11/13/2020, 7:34 PM
Hey folks, I’ve been trying to make my monorepo look more like the structure of
pants
repo, by removing the “regular” python-package structure like:
Copy code
projects/
  my_project/
    my_project/
      __init__.py
      __main__.py
    pyproject.toml
    README.md
so I dont have that inner
my_project
anymore, nor I’m using the
pyproject.toml
to define that package… the thing is, now my
pex_binary()
creates the whole structure ->
projects/my_project/__main__.py
instead what it was doing before by putting
my_project
directly into the root of the pex. I’m pretty sure this is something very very silly I’m doing with the
python_libraries()
definitions / BUILD files. How can I make sure that
my_project
lives at the root of the
pex
file so I can set the entry_point as
my_project
instead of
<http://projects.my|projects.my>_project
Ohhhh haha I totally forgot about the
Copy code
[source]
root_patterns
marker_filenames
nvm, I figured it out, lol, I’ve set those so long ago that I forgot about them…
w

witty-crayon-22786

11/13/2020, 7:43 PM
huzzah 😃
🤣 1