From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: bug#36518: [core-updates] python-boot0 fails to build on armhf and aarch64 Date: Sat, 06 Jul 2019 11:35:57 +0200 Message-ID: <871rz3sdxe.fsf@elephly.net> References: <87o928qc5p.fsf@devup.no> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:32907) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hjhMR-0002Ed-Fc for bug-guix@gnu.org; Sat, 06 Jul 2019 05:52:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hjhMQ-0003iM-Fm for bug-guix@gnu.org; Sat, 06 Jul 2019 05:52:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45411) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hjhMQ-0003iC-91 for bug-guix@gnu.org; Sat, 06 Jul 2019 05:52:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hjhMQ-0005fa-2q for bug-guix@gnu.org; Sat, 06 Jul 2019 05:52:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: <87o928qc5p.fsf@devup.no> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: mbakke@fastmail.com Cc: 36518@debbugs.gnu.org Hi Marius, > But the interpreter fails with 'unbound variable: this' upon running > glibcs Python scripts. This means it fell through to the case where =E2=80=9Cpython=E2=80=9D is ca= lled with more than one argument: --8<---------------cut here---------------start------------->8--- (define* (main #:optional (args (command-line))) (match args ((_ file) (let ((compiled (string-append file ".go"))) (compile-file file #:from python #:output-file compiled) (load-compiled compiled))) ((_) (repl-default-option-set! 'prompt ">>> ") (set! (@@ (system repl common) repl-welcome) (const (display "\ Python on Guile, version 0.1.0 (Hit Ctrl-D to exit.) "))) (start-repl python) #t) (_ (format (current-error-port) "usage: ~a file.py~%" this)))) --8<---------------cut here---------------end--------------->8--- =E2=80=9Cthis=E2=80=9D was supposed to be the first match, i.e. the =E2=80= =9Cpython=E2=80=9D executable itself. Anyway, the problem is that =E2=80=9Cpython=E2=80=9D doesn=E2=80= =99t handle any flags at all. I=E2=80=99ll implement option =E2=80=9Chandling=E2=80=9D soon (may= be we can ignore most options to =E2=80=9Cpython=E2=80=9D). -- Ricardo