I know this has definitely been discussed before b...
# general
a
I know this has definitely been discussed before but I can't recall, is there a way to build a pex that includes every target in a subdirectory, recursively?
b
Can you define a target that’s recursive, and then include that in the PEX? Ex:
Copy code
python_sources(
    name="all_nested_code",
    sources=["**/*.py"],
)
Or do you need all targets and not just Python sources?
a
Yeah I've done that in the past. I feel like there should be a way to recursively glob all targets and not just all files though.