Hey folks, I’ve been trying to make my monorepo lo...
# general
w
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
huzzah 😃
🤣 1