X Tutup
The Wayback Machine - https://web.archive.org/web/20260130083607/https://github.com/python/cpython/pull/32178
Skip to content

Conversation

@isuruf
Copy link
Contributor

@isuruf isuruf commented Mar 29, 2022

Copy link
Contributor

@ronaldoussoren ronaldoussoren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR looks sane, but...

  • _osx_support contains more processing of command-line flags than the bit changed by this PR (for example: look for _UNIVERSAL_CONFIG_VARS), and those may be affected by this issue of similar ones
  • It might be better to bite the bullet and switch to properly splitting the value using shlex.split instead of using regular expressions, to avoid the (pretty unlikely) scenario of a build that uses a preprocessor define that matches, e.g.:
     CFLAGS=... -DCOMPILER_ARGS="-O3 -arch arm64 -g" ...

@isuruf
Copy link
Contributor Author

isuruf commented Apr 18, 2022

_osx_support contains more processing of command-line flags than the bit changed by this PR (for example: look for _UNIVERSAL_CONFIG_VARS), and those may be affected by this issue of similar ones

I guess you are referring to

flags = re.sub(r'-isysroot\s*\S+(?:\s|$)', ' ', flags)
, right?

@ronaldoussoren
Copy link
Contributor

_osx_support contains more processing of command-line flags than the bit changed by this PR (for example: look for _UNIVERSAL_CONFIG_VARS), and those may be affected by this issue of similar ones

I guess you are referring to

flags = re.sub(r'-isysroot\s*\S+(?:\s|$)', ' ', flags)

, right?

That, and

flags = re.sub(r'-arch\s+\w+\s', ' ', flags, flags=re.ASCII)

There may be others as well, I haven't done an exhaustive search yet.

@bendnorman
Copy link

Hello! What is the status of the PR? We are running into this issue when trying to install our packages. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

X Tutup