I’m trying to make pants tailor to not create `pyt...
# development
m
I’m trying to make pants tailor to not create
python_requirements
for me but I’m having a hard time. Is it possible?
c
Have you seen
—tailor-ignore-adding-targets
?
./pants help-advanced tailor
m
Yes, but I can’t see to make it ignore python_requirements
c
Right, sorry, misread that as target types.
h
[python].tailor_requirements_targets = false
m
😐
h
I'm confused with that response, did that not work?
m
It did but It’s a bit strange that it’s under python and not under tailor. I would not have thought to search there
h
Yeah idk a better place to put it - there is currently no way to have one backend dynamically add options to a subsystem defined somewhere else. (Unlike the Target API, where for example the Flake8 backend can dynamically add
skip_flake8
to
python_source
target) This means that we would have to leak details about the Python backend into the generic
[tailor]
subsystem We eventually want to redesign subsystems, and perhaps this will be a feature we add
h
Yeah,
tailor
scope is for generic tailor-related options,
python
is for Python-related options, so we put the python tailoring options there. Sorry that wasn't expected.
b
Maybe we can add a cross-reference in the docs somewhere?