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

Cross building fixes #2204

Merged
merged 5 commits into from
Sep 2, 2024
Merged

Cross building fixes #2204

merged 5 commits into from
Sep 2, 2024

Commits on Sep 1, 2024

  1. Extract extension architecture name resolvation code as helper

    This commit introduces helper InterpreterConfig.get_python_ext_arch() that
    can be used to determine the extension architecture name python uses in
    `ext_suffix` for this architecture.
    
    Signed-off-by: Vesa Jääskeläinen <[email protected]>
    vesajaaskelainen committed Sep 1, 2024
    Configuration menu
    Copy the full SHA
    56333be View commit details
    Browse the repository at this point in the history
  2. Fix cross compilation issue with linux-armv7l architecture

    When compiling under Yocto project for linux-armv7l target architecture
    .so files were generated incorrectly as:
    
      rpds.cpython-312-armv7l-linux-gnueabihf.so
    
    Where as platform and EXT_SUFFIX are defined as:
    
      >>> sysconfig.get_platform()
      'linux-armv7l'
      >>> sysconfig.get_config_vars()['EXT_SUFFIX']
      '.cpython-312-arm-linux-gnueabihf.so'
    
    Which should have caused the .so files as:
    
      rpds.cpython-312-arm-linux-gnueabihf.so
    
    Signed-off-by: Vesa Jääskeläinen <[email protected]>
    vesajaaskelainen committed Sep 1, 2024
    Configuration menu
    Copy the full SHA
    f872543 View commit details
    Browse the repository at this point in the history
  3. Extract extension ABI name resolvation code as helper

    This commit introduces helper InterpreterConfig.get_python_target_env()
    that can be used to determine the extension ABI python uses in
    `ext_suffix` for this architecture.
    
    Signed-off-by: Vesa Jääskeläinen <[email protected]>
    vesajaaskelainen committed Sep 1, 2024
    Configuration menu
    Copy the full SHA
    3f9b77d View commit details
    Browse the repository at this point in the history
  4. Fix cross compilation issue with linux-ppc architecture

    When compiling under Yocto project for linux-ppc target architecture
    .so files were generated incorrectly as:
    
      rpds.cpython-312-ppc-linux-gnu.so
    
    Where as platform and EXT_SUFFIX are defined as:
    
      >>> sysconfig.get_platform()
      'linux-ppc'
      >>> sysconfig.get_config_vars()['EXT_SUFFIX']
      '.cpython-312-powerpc-linux-gnu.so'
    
    Which should have caused the .so files as:
    
      rpds.cpython-312-powerpc-linux-gnu.so
    
    Signed-off-by: Vesa Jääskeläinen <[email protected]>
    vesajaaskelainen committed Sep 1, 2024
    Configuration menu
    Copy the full SHA
    9b0f4e8 View commit details
    Browse the repository at this point in the history
  5. Fix cross compilation issue with linux-mips64 architecture

    When compiling under Yocto project for linux-mips64 target architecture
    .so files were generated incorrectly as:
    
      rpds.cpython-312-mips64-linux-gnu.so
    
    Where as platform and EXT_SUFFIX are defined as:
    
      >>> sysconfig.get_platform()
      'linux-mips64'
      >>> sysconfig.get_config_vars()['EXT_SUFFIX']
      '.cpython-312-mips64-linux-gnuabi64.so'
    
    Which should have caused the .so files as:
    
      rpds.cpython-312-mips64-linux-gnuabi64.so
    
    Signed-off-by: Vesa Jääskeläinen <[email protected]>
    vesajaaskelainen committed Sep 1, 2024
    Configuration menu
    Copy the full SHA
    aa812fd View commit details
    Browse the repository at this point in the history