Hey team, Happy New Year! :sparkler: Working on a ...
# general
g
Hey team, Happy New Year! 🎇 Working on a lambda project and it requires requirements.txt to install its python dependency. While the whole project is using poetry to control the dependency. I found that the pants always add the follow session to the BUILD file, and it causes the system to have difficulty to understand which library to pick(pip install vs. poetry dep)
Copy code
python_requirements(
    name="reqs",
    source="lambda_requirements.txt",
)
Anyways to remove that specific file from the BUILD detection? Thanks!
c
To clarify, do you mean that pants will try adding the
python_requirements
target as part of
tailor
? If you want Pants to not generate those targets as part of
tailor
, you can disable that option https://www.pantsbuild.org/docs/reference-python#tailor_requirements_targets If you want Pants to not see the file at all, you can use ignores https://www.pantsbuild.org/docs/reference-global#pants_ignore . But that will also prevent pants from pulling it in as a
file
target, which might not be what you want.
👍 1
g
Thx a lot, Daniel! I ended up using the same dependency for both build systems for consistency’s sake.