Re: TaDAAA!!!!

Eric Fahlgren <[email protected]>
Newsgroups gmane.comp.python.wxpython.devel
Message-ID <CAP2Qz+UZiQKm7cVoufyL3yQm1d9eyx680h0XyMFYO1yWz4+siA@mail.gmail.com>
Yes, I do that on my (windows) development machine.  The trick is to delete
(or rename) the installation info that 3.0 puts in site-packages before you
install 4.0, or pip will remove the 3.0 installation.

> cd python/lib/site-packages
> pip install ...3.0...
> rm wxPython-3.0.2.0.dist-info
> pip install ...4.0...
> mkdir wxPhoenix
> mv wx wxPhoenix

Now we have two parallel installations in site-packages:

lib/site-packages/
   wx-3.0-msw ("msw" because this is windows, your's will be different on
Ubuntu)
      wx
   wxPhoenix
      wx

I then hack up site-packages/wx.pth so it looks like this:

>>> import site ; sp = site.getsitepackages()[-1]
>>> import os   ; cwd = os.getcwd()
>>> import sys  ; sys.path.append(sp+os.sep+ ("wxPhoenix" if "wxUpdate" in
cwd else "wx-3.0-msw"))

So in my "wxUpdate" workspace, it automatically switches to wxPhoenix and
"import wx" gets 4.0 instead of 3.0.


On Sun, Apr 16, 2017 at 8:13 PM, Mario Lacunza <[email protected]> wrote:

> Hi,
>
> Im running Ubuntu can I have installed both versions of wxPython? :
>
> Python 2.x-> wxPython
> Python 3.x-> Phoenix
>
> Saludos / Best regards
>
> Mario Lacunza
> Email:: [email protected]
> Personal Website:: http://www.lacunza.biz/
> Hosting:: http://mlv-host.com/
> Skype: mlacunzav
>
> Lima - Peru
>
> 2017-04-16 20:49 GMT-05:00 Robin Dunn <[email protected]>:
>
>> Eric Fahlgren wrote:
>>
>> Thanks for this, Robin!
>>
>> To keep using latest snapshots, should we use the old magic handshake:
>>
>> pip download \
>>     --pre \
>>     --trusted-host wxpython.org \
>>     --find-links http://wxpython.org/Phoenix/snapshot-builds/ \
>>     wxPython_Phoenix
>>
>> or grab the latest pypi wheel for the 4.0 installer?
>>
>> pip download wxPython
>>
>>
>> Only releases will be going to PyPI. Snapshots will still be uploaded to
>> wxPython.org on days when changes are committed to the master branch.
>> However the name on the snapshots will be changing to "wxPython" now that
>> Phoenix is official, also it's no longer necessary to use the
>> --trusted-host flag since https is supported on the server. So something
>> like this should work to get the snapshots going forward:
>>
>> pip install --pre --find-links http://wxpython.org/Phoenix/sn
>> apshot-builds/ wxPython
>>
>>
>> --
>> Robin Dunn
>> Software Craftsman
>> http://wxPython.org
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "wxPython-dev" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "wxPython-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.