guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tk-update update


From: Ludovic Courtès
Subject: Re: tk-update update
Date: Thu, 26 Nov 2015 14:34:47 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Ricardo Wurmus <address@hidden> skribis:

> Ludovic Courtès <address@hidden> writes:
>
>> … we end up with python2’s pyexpat.so in the search path, and python3
>> fails when it tries to load it.  (This change was done so that .so files
>> such as tkinter.so can be found even when they don’t lie under Python’s
>> prefix.)
>>
>> My analysis is that it’s “reasonable” to expect breakage when mixing
>> python2 and python3 in the same environment, and that the problem here
>> is more that standalone programs like ‘gdbus-codegen’ should be wrapped
>> to have their PYTHONPATH set in stone.
>
> This is the correct approach in my opinion.  Standalone Python
> programmes should really be wrapped so that all required paths are
> defined.

Well, ‘gdbus-codegen’ normally has no problem finding its modules,
because it uses only modules provided by Python itself.

The problem here is that setting PYTHONPATH interferes with that.

So if we wrap ‘gdbus-codegen’, we do it such that the wrapper unsets
or clears PYTHONPATH altogether.

Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]