[issue37916] distutils: allow overriding of the RANLIB command on macOS (darwin)

Jakub Piotr Cłapa report at bugs.python.org
Thu Aug 22 07:37:17 EDT 2019


New submission from Jakub Piotr Cłapa <jpc at loee.pl>:

On a macOS hosts the system ranlib does not understand ELF
files so using the "ranlib" command causes errors during cross-compilations.

The simplest way to fix it is to pass the RANLIB parameter provided to setup.py through to the distutils compiler machinery. This is analogous to the way the C/C++ cross-compiler is configured.

This change (in a GitHub PR) was required to proceed with crosscompiling numpy. It should help with other packages too (if they use distutils and need ranlib).

----------
components: Cross-Build
messages: 350185
nosy: Alex.Willmer, Jakub Piotr Cłapa
priority: normal
severity: normal
status: open
title: distutils: allow overriding of the RANLIB command on macOS (darwin)
type: compile error

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37916>
_______________________________________


More information about the Python-bugs-list mailing list