GNU bug report logs - #60733
python build systems does not support cross-compilation

Previous Next

Package: guix;

Reported by: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Date: Wed, 11 Jan 2023 16:44:02 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: 60733 <at> debbugs.gnu.org
Subject: bug#60733: python build systems does not support cross-compilation
Date: Wed, 11 Jan 2023 11:43:14 -0500
Hello,

Here's an example:

--8<---------------cut here---------------start------------->8---
$ guix build --target=aarch64-linux-gnu python-coverage

guix build: error: gnu/packages/check.scm:1997:2: python-coverage <at> 5.2.1:
build system `python' does not support cross builds
--8<---------------cut here---------------end--------------->8---

Python byte compiled files are not architecture dependents, so nothing
is needed for them.  In some cases where C extensions are used,
setuptools or PEP 517 python build systems handle this transparently.

So it seems like we should be able to support cross-compiling Python
packages easily, which can be useful when building images containing
Python packages for embedded systems via cross-compilation.

Thoughts?

-- 
Thanks,
Maxim




This bug report was last modified 2 years and 153 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.