Hi All. I'm using django with a bit of a wierd fil...
# general
d
Hi All. I'm using django with a bit of a wierd file setup for context. But! I have a bunch of django plugins that need to be imported. The dependency inference isnt picking them up because django is doing some magic stuff, and i've managed to pull them in by specifying a python_requirement specifically in the pex_binary.. SOmething like this
Copy code
python_requirement(
    name="django-filter",
    resolve="api",
    requirements=["django-filter==23.2"],
)

pex_binary(
    name="manage",
    entry_point="src/manage.py",
    layout="packed",
    include_requirements=True,
    include_tools=True,
    dependencies=[
        "api:django-filter"
    ],
)
But I also use a requirements.txt to populate the resolve that this uses, so I dont want to specify a dependency in two places. Is there a way that I can tell the pex_binary to have a hard dependency on a package in a resolve?