setuptools icon indicating copy to clipboard operation
setuptools copied to clipboard

[BUG] can not see compilation (can't see gcc command line options when compiling)

Open illume opened this issue 1 year ago • 3 comments

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


illume avatar May 18 '24 11:05 illume

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

mcepl avatar Jun 11 '24 21:06 mcepl

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.

twmr avatar Aug 11 '24 15:08 twmr

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

illume avatar Sep 01 '24 09:09 illume