On Sun, Jan 14, 2018 at 11:48:37PM -0500, Scott Talbert wrote:
> > On Mon, Jan 08, 2018 at 11:51:47PM -0500, Scott Talbert wrote:
> >
> > > The answer is pretty much the same as before. I'm still waiting on an
> > > official release to move forward with official packaging.
> > >
> > > I can, however, make a PPA though, so I'll work on that.
>
MANY thanks ! This is even better than I hoped -- it'll
allow me to use Phoenix while staying with py2 for the time
being (which is not the goal but tremendously helps in
separating concerns while porting to both py3 and wxp4).
> Right now it only has packages for Xenial. Let me know if there is demand
> for builds in other releases.
I know it's much to be asked for but Debian Testing (or
Unstable) would be even closer to my "supported target
platform" :-)
> Note that for the python 2 versions, the files install to a location that is
> not in the standard python path (so as to not conflict with the official
> classic packages), so to use the python 2 version, you'll have to change
> your PYTHONPATH to find it.
Debian uses wx.pth to prefer wxp versions over another at the
system level (unless the user explicitely uses wxversion,
which is gone for good in wxp4):
root@hermes:~/bin# ls -la /usr/lib/python2.7/dist-packages/wx.pth
lrwxrwxrwx 1 root root 22 Dez 17 04:33 /usr/lib/python2.7/dist-packages/wx.pth -> ../../wx/python/wx.pth
root@hermes:~/bin# cat /usr/lib/python2.7/dist-packages/wx.pth
wx-3.0-gtk2
root@hermes:~/bin#
wx.pth, in turn, is controlled by update-alternatives:
wx.pth - auto mode
link best version is /usr/lib/wx/python/wx3.0.pth
link currently points to /usr/lib/wx/python/wx3.0.pth
link wx.pth is /usr/lib/wx/python/wx.pth
/usr/lib/wx/python/wx3.0.pth - priority 30
in /etc/alternatives:
lrwxrwxrwx 1 root root 28 Dez 22 11:09 /etc/alternatives/wx.pth -> /usr/lib/wx/python/wx3.0.pth
AFAICT, "update-alternatives --install" adds a new option:
update-alternatives(1) dpkg suite update-alternatives(1)
NAME
update-alternatives - maintain symbolic links
determining default commands
SYNOPSIS
update-alternatives [option...] command
COMMANDS
--install link name path priority [--slave link
name path]...
Add a group of alternatives to the system.
link is the generic name for the master
link, name is the name of its symlink in the
alternatives directory, and path is the
alternative being introduced for the master
link. The arguments after --slave are the
generic name, symlink name in the
alternatives directory and the alternative
path for a slave link. Zero or more --slave
options, each followed by three arguments,
may be specified. Note that the master
alternative must exist or the call will
fail. However if a slave alternative doesn't
exist, the corresponding slave alternative
link will simply not be installed (a warning
will still be displayed). If some real file
is installed where an alternative link has
to be installed, it is kept unless --force
is used.
If the alternative name specified exists
already in the alternatives system's
records, the information supplied will be
added as a new set of alternatives for the
group. Otherwise, a new group, set to
automatic mode, will be added with this
information. If the group is in automatic
mode, and the newly added alternatives'
priority is higher than any other installed
alternatives for this group, the symlinks
will be updated to point to the newly added
alternatives.
which might be worthwhile in postinst.
But I guess you knew that :-)
(Not sure this helps with the PYTHONPATH, though.)
Regards,