Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"What man has done, man can aspire to do." -- Jerry Pournelle, about space flight


devel / comp.lang.python / Re: mac app from a python script?

SubjectAuthor
o Re: mac app from a python script?Mats Wichmann

1
Re: mac app from a python script?

<mailman.252.1643038570.3079.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=16803&group=comp.lang.python#16803

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: mat...@python.org (Mats Wichmann)
Newsgroups: comp.lang.python
Subject: Re: mac app from a python script?
Date: Mon, 24 Jan 2022 08:30:41 -0700
Lines: 32
Message-ID: <mailman.252.1643038570.3079.python-list@python.org>
References: <CAGGBd_pQ9MWTPYPLBXzRDp32zFCh06d+9GQ47vxnPp6KFuqVMg@mail.gmail.com>
<ff0c5cef-7e4f-18d5-b478-821b91db1df8@python.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de DTVdG9ytgeKGGDwdcdQa3wQe3EDeRqA915ZbfJ6+UUGQ==
Return-Path: <mats@python.org>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=python.org; s=200901;
t=1643038569; bh=UF9dMbfW4dWabRv6vzw80hv8QcYXf+lmZZhWLAna5UU=;
h=Date:Subject:To:References:From:In-Reply-To:From;
b=A0r/gM4y6WAWEnCRJ9VLMAATzAmwu0WyqDV+w4elexEUjdivF+XAFscIRaKNHWfvF
shNu782XWnkzWFGDDl2t01pvbYpGXH5K+x+3DvLwIVFjJK1JcTzMDH5GXzZAG3sWkI
L64QTmD2IZ5j74nTlhO0jOSzIKxwSOPr69NkaSPU=
X-Spam-Status: OK 0.003
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:python': 0.06;
'linux,': 0.07; 'dan': 0.09; 'linux': 0.09; 'macos': 0.09;
'macos,': 0.09; 'subject:script': 0.09; 'received:173': 0.13;
'from:addr:python.org': 0.15; 'that.': 0.15; 'executable': 0.16;
'help:': 0.16; 'subject:app': 0.16; 'url:mac': 0.16; 'wrote:':
0.16; 'python': 0.16; 'installing': 0.19; 'to:addr:python-list':
0.20; "i've": 0.22; "what's": 0.22; 'command': 0.23; "i'd": 0.24;
'notes': 0.26; 'creating': 0.27; "isn't": 0.27; 'mostly': 0.28;
'goes': 0.28; 'header:User-Agent:1': 0.30; 'seem': 0.31;
'putting': 0.31; "doesn't": 0.32; 'here,': 0.32; 'but': 0.32;
'there': 0.33; 'script': 0.33; 'header:In-Reply-To:1': 0.34;
'running': 0.34; 'fine': 0.35; 'runs': 0.35; 'subject:from': 0.37;
'really': 0.37; "it's": 0.37; 'received:192.168': 0.37; 'way':
0.38; 'single': 0.39; 'much.': 0.39; 'done.': 0.40; 'something':
0.40; 'want': 0.40; 'top': 0.65; 'acceptable': 0.69; 'perfectly':
0.69; 'skip:/ 10': 0.69; 'care': 0.71; 'line,': 0.93
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=message-id
:date:mime-version:subject:to:references:from:in-reply-to
:content-type:content-transfer-encoding; s=sasl; bh=UF9dMbfW4dWa
bRv6vzw80hv8QcYXf+lmZZhWLAna5UU=; b=hA7gYdNqR0knuszvuKVZm9RJM7V8
d4WXQO7rIe/ksQYe7uOtRKGWO1lLkwpqNa5CByTA06YJ2WMU8r/OacUiIYP8EJqc
EPshNMkg7F6XN8e1dkoYZzNBKif+6khGKKDoX9rSMmDX1FIDbn6A6U7dFEqs8cGm
+xm/YATmqq7aRz8=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.4.0
Content-Language: en-US
In-Reply-To: <CAGGBd_pQ9MWTPYPLBXzRDp32zFCh06d+9GQ47vxnPp6KFuqVMg@mail.gmail.com>
X-Pobox-Relay-ID: 97A768EA-7D2A-11EC-8495-CBA7845BAAA9-81526775!pb-smtp21.pobox.com
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <ff0c5cef-7e4f-18d5-b478-821b91db1df8@python.org>
X-Mailman-Original-References: <CAGGBd_pQ9MWTPYPLBXzRDp32zFCh06d+9GQ47vxnPp6KFuqVMg@mail.gmail.com>
 by: Mats Wichmann - Mon, 24 Jan 2022 15:30 UTC

On 1/23/22 10:59, Dan Stromberg wrote:
> Hi folks.
>
> I have a Python 3 script (built on top of gi.respository.Gtk) that runs on
> Linux and macOS 11.5. It's at https://stromberg.dnsalias.org/~strombrg/hcm/
> if you're curious.
>
> It works the way I want on Linux, but on macOS I seem to have to start it
> from the command line, like:
> hcm --gui
> ...because I don't know how to create a macOS "app" that goes under
> /Applications.
>
> I don't really care about having a single executable on macOS, and I don't
> really care about creating a .dmg or .pkg file. I'd be perfectly happy just
> running "make install" and putting a #!'d script under /Applications with
> appropriate metadata - but if it's easier to do a single executable, .dmg
> or .pkg, I'd be fine with that.
>
> I've experimented with a few different options for this (months ago),
> mostly py2app, but it doesn't appear to like gi.repository.Gtk much.
>
> What's the most straightforward way of installing a Python script under
> /Applications on macOS? I'd -love- to find a way of doing something
> analogous to Linux' desktop-file-install - that is, something that isn't
> click-happy, but GUI's are acceptable too if they'll get the job done.

There are notes on the topic here, see if they help:

https://docs.python.org/3/using/mac.html#how-to-run-a-python-script

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor