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

Fix finding headers when cross compiling #145

Merged
merged 7 commits into from Jun 7, 2022

Commits on May 19, 2022

  1. Fix finding headers when cross compiling

    When cross-compiling third-party extensions, get_python_inc() may be called to
    return the path to Python's headers. However, it uses the sys.prefix or
    sys.exec_prefix of the build Python, which returns paths pointing to build
    system headers when instead we really want the host system headers.
    
    To fix this, we use the INCLUDEPY and CONFINCLUDEPY conf variables, which can
    be configured to point at host Python by setting _PYTHON_SYSCONFIGDATA_NAME.
    The existing behavior is maintained on non-POSIX platforms or if a prefix is
    manually specified.
    lopsided98 committed May 19, 2022
    Copy the full SHA
    aed7294 View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2022

  1. 1
    Copy the full SHA
    b05a823 View commit details
    Browse the repository at this point in the history
  2. Extract separate functions for _get_python_inc_{os.name}, now that OS…

    … treatment diverges even more.
    jaraco committed Jun 7, 2022
    Copy the full SHA
    4266782 View commit details
    Browse the repository at this point in the history
  3. Extract functions for _get_python_inc for config or prefix variants. …

    …Use value algebra to simplify the logic.
    jaraco committed Jun 7, 2022
    Copy the full SHA
    fabd05a View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    bf901de View commit details
    Browse the repository at this point in the history
  5. ⚫ Fade to black.

    jaraco committed Jun 7, 2022
    Copy the full SHA
    43b424b View commit details
    Browse the repository at this point in the history
  6. Copy the full SHA
    26607e1 View commit details
    Browse the repository at this point in the history