Title: distutils: allow overriding of the RANLIB command on macOS (darwin)
Type: compile error Stage: patch review
Components: Cross-Build, Distutils Versions:
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Alex.Willmer, Alexandru Ardelean, Jakub Piotr Cłapa, dstufft, eric.araujo
Priority: normal Keywords: patch

Created on 2019-08-22 11:37 by Jakub Piotr Cłapa, last changed 2019-09-02 10:24 by Alexandru Ardelean.

Pull Requests
URL Status Linked Edit
PR 15387 open python-dev, 2019-08-22 11:38
Messages (2)
msg350185 - (view) Author: Jakub Piotr Cłapa (Jakub Piotr Cłapa) * Date: 2019-08-22 11:37
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 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).
msg350978 - (view) Author: Alexandru Ardelean (Alexandru Ardelean) * Date: 2019-09-02 10:24
ping here :)
any thoughts/feedback?

the fix looks interesting, and I'm also interested in seeing a resolution for this
Date User Action Args
2019-09-02 10:24:55Alexandru Ardeleansetnosy: + Alexandru Ardelean
messages: + msg350978
2019-08-23 18:48:18ned.deilysetnosy: + eric.araujo, dstufft
components: + Distutils
2019-08-22 11:38:50python-devsetkeywords: + patch
stage: patch review
pull_requests: + pull_request15096
2019-08-22 11:37:17Jakub Piotr Cłapacreate