Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"Were there no women, men might live like gods." -- Thomas Dekker


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

SubjectAuthor
o Re: mac app from a python script?Barry

1
Re: mac app from a python script?

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: bar...@barrys-emacs.org (Barry)
Newsgroups: comp.lang.python
Subject: Re: mac app from a python script?
Date: Sun, 23 Jan 2022 21:49:36 +0000
Lines: 56
Message-ID: <mailman.250.1642974586.3079.python-list@python.org>
References: <838B9F3E-E7C9-4AB9-80CC-700AA83A1FA5@barrys-emacs.org>
<678D8EDF-982E-4EC5-8503-EC51F9DA233B@barrys-emacs.org>
Mime-Version: 1.0 (1.0)
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de plIWyljmLYtCM6/bb95hzArJU1DELoM3js6dBrKVI0Nw==
Return-Path: <barry@barrys-emacs.org>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=none reason="no signature";
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.000
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:python': 0.06;
'linux,': 0.07; 'cc:addr:python-list': 0.09; 'dan': 0.09;
'from:addr:barry': 0.09; 'linux': 0.09; 'macos': 0.09; 'macos,':
0.09; 'received:217.70': 0.09; 'received:217.70.178': 0.09;
'received:gandi.net': 0.09; 'received:mail.gandi.net': 0.09;
'subject:script': 0.09; 'url:mailman': 0.15; 'that.': 0.15;
'2022,': 0.16; 'barry': 0.16; 'cc:name:python list': 0.16;
'executable': 0.16; 'from:addr:barrys-emacs.org': 0.16; 'great,':
0.16; 'gtk': 0.16; 'message-id:@barrys-emacs.org': 0.16;
'script.': 0.16; 'subject:app': 0.16; 'wrote:': 0.16; 'python':
0.16; 'installing': 0.19; 'cc:addr:python.org': 0.20; "i've":
0.22; 'mac': 0.22; "what's": 0.22; 'command': 0.23; 'thanks!':
0.24; "i'd": 0.24; 'url-ip:188.166.95.178/32': 0.25; 'url-
ip:188.166.95/24': 0.25; 'url:listinfo': 0.25; 'cc:2**0': 0.25;
'url-ip:188.166/16': 0.25; 'creating': 0.27; "isn't": 0.27;
'mostly': 0.28; 'goes': 0.28; 'seem': 0.31; 'putting': 0.31; 'url-
ip:188/8': 0.31; "doesn't": 0.32; 'but': 0.32; '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;
'way': 0.38; 'single': 0.39; 'use': 0.39; 'much.': 0.39; 'done.':
0.40; 'something': 0.40; 'want': 0.40; 'try': 0.40; 'experience':
0.64; 'top': 0.65; 'received:217': 0.67; 'acceptable': 0.69;
'perfectly': 0.69; 'skip:/ 10': 0.69; 'care': 0.71; 'plus': 0.73;
'pyqt': 0.84; 'spell': 0.84; 'line,': 0.93
In-Reply-To: <838B9F3E-E7C9-4AB9-80CC-700AA83A1FA5@barrys-emacs.org>
X-Mailer: iPad Mail (19C63)
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: <678D8EDF-982E-4EC5-8503-EC51F9DA233B@barrys-emacs.org>
X-Mailman-Original-References: <838B9F3E-E7C9-4AB9-80CC-700AA83A1FA5@barrys-emacs.org>
 by: Barry - Sun, 23 Jan 2022 21:49 UTC

> On 23 Jan 2022, at 21:40, Barry <barry@barrys-emacs.org> wrote:
>
> 
>
>> On 23 Jan 2022, at 18:02, Dan Stromberg <drsalists@gmail.com> 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.
>
> I do not have experience with great, but you might try pyinstaller.
> I use it to make a PyQt Mac app successfully.

Gtk spell correct to great…

>
> It’s command line plus setup script.
>
> Barry
>>
>> Thanks!
>> --
>> https://mail.python.org/mailman/listinfo/python-list
>>

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor