Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
illume opened this issue May 18, 2024 · 3 comments
Labels
bug Needs Triage Issues that need to be evaluated for severity and status.

Comments

@illume
Copy link

illume commented May 18, 2024

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 illume added bug Needs Triage Issues that need to be evaluated for severity and status. labels May 18, 2024
@mcepl
Copy link
Contributor

mcepl commented Jun 11, 2024

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

@twmr
Copy link
Contributor

twmr commented Aug 11, 2024

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.

@illume
Copy link
Author

illume commented Sep 1, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Needs Triage Issues that need to be evaluated for severity and status.
Projects
None yet
Development

No branches or pull requests

3 participants