Skip to content

Why did Poetry not surface the deprecation errors from setuptools? #10297

Answered by radoering
fixermark asked this question in Q&A
Discussion options

You must be logged in to vote

IIRC, we capture stdout/stderr and only print it if there is an error. It might make sense to print it in verbose mode. However, you also have to consider that an sdist is only build once and cached afterwards so that you will only get warnings on the first run anyway.

If someone is interested in taking a deeper look, a good starting point might be

stdout = StringIO()
try:
builder = ProjectBuilder.from_isolated_env(
env, source, runner=quiet_subprocess_runner
)
with redirect_stdout(stdout):
env.install(builder.build_system_requires)
# we repeat the build system re…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@fixermark
Comment options

@radoering
Comment options

Answer selected by fixermark
@fixermark
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants