Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

Computers are like air conditioners. Both stop working, if you open windows. -- Adam Heath


devel / comp.graphics.apps.gimp / Python 3 For GIMP 2

SubjectAuthor
o Python 3 For GIMP 2Lawrence D'Oliveiro

1
Python 3 For GIMP 2

<uu0ekn$2me94$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=144&group=comp.graphics.apps.gimp#144

  copy link   Newsgroups: comp.graphics.apps.gimp
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.graphics.apps.gimp
Subject: Python 3 For GIMP 2
Date: Wed, 27 Mar 2024 06:33:59 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <uu0ekn$2me94$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 27 Mar 2024 06:33:59 +0100 (CET)
Injection-Info: dont-email.me; posting-host="94461754ab2b0d0ff45ec06e9242e35d";
logging-data="2832676"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19NiAGy3CEnZ6vbIzGXWbfR"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:msCPgxsH4mswb8emPny6nYIF/So=
 by: Lawrence D'Oliv - Wed, 27 Mar 2024 06:33 UTC

As you may know, GIMP 3 is taking a while to appear. In the meantime,
the Python API in GIMP 2 is built on obsolete Python 2, which many
distros have dropped. This leaves their standard GIMP 2 packages
without Python support.

However, there is another solution. It turns out the core of GIMP has
no dependency on Python at all, so it is possible to create
alternative wrappers around the shareable libraries that are used by
GIMP plugins (libgimp-2.0.s0.0 etc).

I have done this using the ctypes library that comes with Python 3, to
create the Pylibgimp2 project <https://gitlab.com/ldo/pylibgimp2>. So
far, the API wrapper has been good enough to port some simple (less
than 100 lines each) GIMP plugins that I wrote many years ago. It’s
not complete, by any means. But let me know if this sort of thing is
worth persevering with, and maybe I’ll do some more work on it.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor