[BUG] can not see compilation (can't see gcc command line options when compiling)
setuptools version
69.5.1
Python version
3.12.3
OS
Ubuntu 24.04 and 22.04
Additional environment information
No response
Description
I need to see what options are supplied to gcc when developing a package.
Expected behavior
It used to be that I could see what was being compiled and how.
I tried passing --verbose, but it doesn't work.
How to Reproduce
.
Output
Well, I also observe that there are no messages from gcc even with --verbose sent to setuptools. See https://builds.sr.ht/~mcepl/job/1248381
I can see the compiler output, see pypa/distutils#284 (maybe this only works when build_ext is run manually, not sure) @illume what are you doing differently? Please provide more details.
hi
This minimal python c extension here does print gcc lines: https://github.com/starnight/python-c-extension
@twmr The comment above yours by @mcepl provides an example.
But I did some more digging and found how to reproduce.
This in the setup.py does not work with printing gcc commands:
-
from distutils.core import setup, Command
This does work:
-
from setuptools import setup, Command