From nobody Wed Oct 19 18:08:16 2022 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MszHf6NXVz4gZ0G for ; Wed, 19 Oct 2022 18:08:30 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-qv1-xf2c.google.com (mail-qv1-xf2c.google.com [IPv6:2607:f8b0:4864:20::f2c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MszHf0yjyz3y3G for ; Wed, 19 Oct 2022 18:08:29 +0000 (UTC) (envelope-from tomek@cedro.info) Received: by mail-qv1-xf2c.google.com with SMTP id mx8so11908817qvb.8 for ; Wed, 19 Oct 2022 11:08:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=uivXAbqw271scz+vsFjIiQM5xuVxMlJe6URPJdSu76o=; b=GL6DYydwf+uyL9kn+zr9CPEm2cg+aMyjIscjevf6pdICW20YR0RtN10MH8skbacg63 /EMyo3Ur0qHw/jZ4vW1nmTrl6gi3c78KTFgyCAyySEFi4WXcdKWxaajUcpylqhBT2ZNM MIRrCPb4bO5o4Zw7LB5ltSiqYHIbpDmHKS6g0xhMk8t4uPXe4UOLnlxbw5Uxz9B5oQhs uZ3ZGXgjn34/lbbvWnP5hG9nzQXPtQjvjVe2y1//SR4Vks58wimHPiHsFDiWGmyAoGdP wFMeAjLtorw3KuEyTd+bDE2pZBUE+NhoVaymu/5oxVwBiLKNILHrk7BV/1gCfftuxCp4 hnDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=uivXAbqw271scz+vsFjIiQM5xuVxMlJe6URPJdSu76o=; b=d54Ux1LpEZ0L3u9Mx1SFGdab7ubI7iLm3JaKRhjTyhaDDXGpb5f/iltvOt3jsNdU4M VSw0Y4oJXxuJj96ISPzP728YNyfgYGqVdKryoah+FohRFS/Tp4fu3yMfQweSyGf8XEdp +v+gHdkKrylmSD8CDCAGCOmw9TXNlplySy+V9vav3YitfY4iZoGxPCEitbDx2sHm6Fo5 79wczjnRPHfaL4V/fqXzvr2QHcyxChYhjGFYbHmBxKHoIyB4IKPYV5bVsln6ZsOR5BbF b7z+E+71DiiGupTgEeW2mrWZRhcc8dt2sKJ4MS5a/VT+d9rPWMqYERg3IBbo6bJAi77p IB8A== X-Gm-Message-State: ACrzQf0k5BhWGqrJenXDEz2fSCwc6GoKQnxQ1CXb4nhOxeHjWEAzIzsW mz8zOtlgbQob2lz/Cd+H/pkc+g== X-Google-Smtp-Source: AMsMyM7CrxQGihMBadbgSd6II2yfnEuSxJRZq2XGHU3Lfdowl96V8R2FgNc69kTjw4ioOuzH/8KBMQ== X-Received: by 2002:a05:6214:29ef:b0:4b4:5d8c:637c with SMTP id jv15-20020a05621429ef00b004b45d8c637cmr7763621qvb.77.1666202909154; Wed, 19 Oct 2022 11:08:29 -0700 (PDT) Received: from mail-yw1-f176.google.com (mail-yw1-f176.google.com. [209.85.128.176]) by smtp.gmail.com with ESMTPSA id j4-20020a05620a410400b006eef13ef4c8sm4165636qko.94.2022.10.19.11.08.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 19 Oct 2022 11:08:28 -0700 (PDT) Received: by mail-yw1-f176.google.com with SMTP id 00721157ae682-345528ceb87so175806407b3.11; Wed, 19 Oct 2022 11:08:28 -0700 (PDT) X-Received: by 2002:a81:84cb:0:b0:355:d2be:a314 with SMTP id u194-20020a8184cb000000b00355d2bea314mr7544880ywf.3.1666202907715; Wed, 19 Oct 2022 11:08:27 -0700 (PDT) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Tomek CEDRO Date: Wed, 19 Oct 2022 20:08:16 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: proper python3 interpreter invocation To: FreeBSD Questions Mailing List , freebsd-hackers@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4MszHf0yjyz3y3G X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cedro.info header.s=google header.b=GL6DYydw; dmarc=none; spf=none (mx1.freebsd.org: domain of tomek@cedro.info has no SPF policy when checking 2607:f8b0:4864:20::f2c) smtp.mailfrom=tomek@cedro.info X-Spamd-Result: default: False [-3.30 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[cedro.info:s=google]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::f2c:from,209.85.128.176:received]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_NA(0.00)[no SPF record]; RCPT_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[cedro.info:+]; RCVD_COUNT_THREE(0.00)[4]; RCVD_TLS_LAST(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_SOME(0.00)[]; DMARC_NA(0.00)[cedro.info]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-ThisMailContainsUnwantedMimeParts: N Thank you everyone for the replies and hints! :-) 1. Python is not part of the base. Needs to be installed from ports (various versions available). 2. Safer invocation is `#!/usr/bin/env python3` to be sure that Python 3.x is involved. Metaport python can create /usr/local/bin/python as last resort. 3. Initial patches to Android NDK sent for review :-) https://android-review.googlesource.com/c/platform/ndk/+/2261302 https://android-review.googlesource.com/c/platform/ndk/+/2261303 https://android-review.googlesource.com/c/platform/ndk/+/2261304 This should enable using Linux binaries for build, for now, first step towards native package has been made, that should also enable scripted builds of Python + Kivy + Buildozer, work in progress :-) Thank you :-) Tomek -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info