Re: [Gimp-developer] Problem with GIMP 2.9.x build dependencies

2017-05-21 Thread Carmelo DrRaw
Partha, Kris, Thanks! 

I’ve set

--enable-introspection=no

for all the GTK packages and it seems it worked perfectly… no more version 
inconsistencies.

 
> On 19 May 2017, at 10:09, Kristian Rietveld  wrote:
> 
> Try to disable introspection while building pygobject-2, add the following 
> configure option:
> 
>  --enable-introspection=no
> 
> 
> regards,
> 
> -kris.
> 
> 
>> On 18 May 2017, at 18:10, Carmelo DrRaw  wrote:
>> 
>> Thanks!
>> 
>> May I also ask your gobject-introspection version?
>> 
 
 I use python version 2.7.5, pycairo 1.10.0, pygobject 2.28.6, pygtk-2.24. 
>>> 
>>> Could you also tell me which version of Glib you are using? That’s what is 
>>> causing me troubles…
>>> 
>>> Thanks!
>>> 
>>> 
>>> Sorry. :( 
>>> 
>>> My glib version is  2.53.1
>>> 
>>> 
>> 
>> ___
>> gimp-developer-list mailing list
>> List address:gimp-developer-list@gnome.org
>> List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
>> List archives:   https://mail.gnome.org/archives/gimp-developer-list
> 

___
gimp-developer-list mailing list
List address:gimp-developer-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list


[Gimp-developer] How to set the python path for GIMP plug-ins when bundling into an AppImage

2017-05-21 Thread Carmelo DrRaw
Hi!

I am facing a problem when trying to build a GIMP AppImage that bundles python 
to allow running the python-based plug-ins.

As far as I understand, GIMP takes the python executable specified in 

PREFIX/lib/gimp/2.0/interpreters/pygimp.interp

where the executable path has to be specified with an absolute way (otherwise 
GIMP throws an error “Bad binary format string in interpreter file …”).

However, in the AppImage case the absolute path into which the package is 
extracted is random, and is only known after the AppImage has ben actually 
started. Moreover, configuration files inside the AppImage bundle cannot be 
modified because they are read-only.

Hence my question: is there a way to dynamically specify the path to the python 
interpreter? In such situations one would typically use environment variables, 
but there seems to be no way in this case…


Thanks a lot in advance!
___
gimp-developer-list mailing list
List address:gimp-developer-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list


Re: [Gimp-developer] How to set the python path for GIMP plug-ins when bundling into an AppImage

2017-05-21 Thread Partha Bagchi
On Sun, May 21, 2017 at 2:44 PM, Carmelo DrRaw 
wrote:

> Hi!
>
> I am facing a problem when trying to build a GIMP AppImage that bundles
> python to allow running the python-based plug-ins.
>
> As far as I understand, GIMP takes the python executable specified in
>
> PREFIX/lib/gimp/2.0/interpreters/pygimp.interp
>
> where the executable path has to be specified with an absolute way
> (otherwise GIMP throws an error “Bad binary format string in interpreter
> file …”).
>
> However, in the AppImage case the absolute path into which the package is
> extracted is random, and is only known after the AppImage has ben actually
> started. Moreover, configuration files inside the AppImage bundle cannot be
> modified because they are read-only.
>
> Hence my question: is there a way to dynamically specify the path to the
> python interpreter? In such situations one would typically use environment
> variables, but there seems to be no way in this case…
>
>
> Thanks a lot in advance!
>
> A,

Not wanting to starting some Linux "wars" :), I think of AppImage as
Linux's acknowledgement to Mac OSX Apps.

So in that vein, include a launcher in your AppImage which mounts your
support libs is a specific location (possibly /tmp) and then point the
python interpreter to something like /tmp/python/python or something
similar.

Maybe that will work?
___
gimp-developer-list mailing list
List address:gimp-developer-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list


Re: [Gimp-developer] How to set the python path for GIMP plug-ins when bundling into an AppImage

2017-05-21 Thread Carmelo DrRaw

> On 21 May 2017, at 21:56, Partha Bagchi  wrote:
> 
> 
> 
> On Sun, May 21, 2017 at 2:44 PM, Carmelo DrRaw  > wrote:
> Hi!
> 
> I am facing a problem when trying to build a GIMP AppImage that bundles 
> python to allow running the python-based plug-ins.
> 
> As far as I understand, GIMP takes the python executable specified in
> 
> PREFIX/lib/gimp/2.0/interpreters/pygimp.interp
> 
> where the executable path has to be specified with an absolute way (otherwise 
> GIMP throws an error “Bad binary format string in interpreter file …”).
> 
> However, in the AppImage case the absolute path into which the package is 
> extracted is random, and is only known after the AppImage has ben actually 
> started. Moreover, configuration files inside the AppImage bundle cannot be 
> modified because they are read-only.
> 
> Hence my question: is there a way to dynamically specify the path to the 
> python interpreter? In such situations one would typically use environment 
> variables, but there seems to be no way in this case…
> 
> 
> Thanks a lot in advance!
> 
> A,
> 
> Not wanting to starting some Linux "wars" :), I think of AppImage as Linux's 
> acknowledgement to Mac OSX Apps. 

Kind of yes, and kind of “why not?" ;-)

> 
> So in that vein, include a launcher in your AppImage which mounts your 
> support libs is a specific location (possibly /tmp) and then point the python 
> interpreter to something like /tmp/python/python or something similar. 

This is what is already done by the AppImage, except that the mound directory 
is generated with a temporary name, different each time. This is not something 
under my control, and what is causing trouble in this specific case...

> 
> Maybe that will work?
> 

___
gimp-developer-list mailing list
List address:gimp-developer-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list


Re: [Gimp-developer] How to set the python path for GIMP plug-ins when bundling into an AppImage

2017-05-21 Thread Partha Bagchi
On Sun, May 21, 2017 at 4:18 PM, Carmelo DrRaw 
wrote:

>
>
> This is what is already done by the AppImage, except that the mound
> directory is generated with a temporary name, different each time. This is
> not something under my control, and what is causing trouble in this
> specific case...
>
Why? You can select a name that would be highly unlikely to exist in /tmp
and just reuse that?
___
gimp-developer-list mailing list
List address:gimp-developer-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list