Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #10508
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Scott Talbert <swt@techie.net> |
| Newsgroups | linux.debian.maint.python |
| Subject | Re: Removal of easy_install |
| Date | Tue, 08 May 2018 02:50:02 +0200 |
| Message-ID | <vMYZk-eG-1@gated-at.bofh.it> (permalink) |
| References | <vMDrP-2Sc-5@gated-at.bofh.it> <vME4x-3uQ-7@gated-at.bofh.it> <vMOQm-1WX-3@gated-at.bofh.it> <vMYd0-8ay-3@gated-at.bofh.it> |
| X-Original-To | debian-python@lists.debian.org |
| X-Mailbox-Line | From debian-python-request@lists.debian.org Tue May 8 00:49:57 2018 |
| Old-Return-Path | <swt@techie.net> |
| X-Amavis-Spam-Status | No, score=-6.079 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, LDO_WHITELIST=-5, MISSING_HEADERS=1.021] autolearn=no autolearn_force=no |
| X-Policyd-Weight | using cached result; rate: -6.1 |
| Dkim-Signature | v=1; a=rsa-sha256; c=simple/simple; d=techie.net; s=default; t=1525740580; bh=Rn96mjOejDxLGVqYGw1PRkOc15GrEKednGQAieuUk38=; h=Date:From:cc:Subject:In-Reply-To:References:From; b=k+jnPy5pFSKV3028H4w+JZCClR9kKCOcPUVpuL3K1RyFDAT4skVNnnG2RmGtpPCiI WUir8SyuTG5uIRRyCEu3ELehXU9TwqMa9tPDjeoPcw/+SxqoYiy5sUpWvJXVuuJLGG ldfTDt2e4KPtdx47hKFwr7Oz2QWduT8I1Fu39kRk= |
| X-X-Sender | talbert@bear.techie.net |
| User-Agent | Alpine 2.20 (DEB 67 2015-01-07) |
| MIME-Version | 1.0 |
| Content-Type | multipart/mixed; BOUNDARY="-2033333575-2054020545-1525740580=:30311" |
| X-Mailing-List | <debian-python@lists.debian.org> archive/latest/15912 |
| List-ID | <debian-python.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-python/> |
| List-Archive | https://lists.debian.org/msgid-search/alpine.DEB.2.20.1805072040520.30311@bear.techie.net |
| Approved | robomod@news.nic.it |
| Lines | 49 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Cc | debian-python@lists.debian.org |
| X-Original-Date | Mon, 7 May 2018 20:49:40 -0400 (EDT) |
| X-Original-Message-ID | <alpine.DEB.2.20.1805072040520.30311@bear.techie.net> |
| X-Original-References | <alpine.DEB.2.20.1805062133230.13357@bear.techie.net> <85d0y8p5q6.fsf@benfinney.id.au> <alpine.DEB.2.20.1805070944300.22176@bear.techie.net> <858t8vowhu.fsf@benfinney.id.au> |
| Xref | csiph.com linux.debian.maint.python:10508 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
On Tue, 8 May 2018, Ben Finney wrote: >> The source package in question is wxpython4.0. The reason I use >> easy_install is for installing the python2 version of the module as an >> egg. > > Okay, so from that I understand that the Debian package is not invoking > ‘easy_install’ to fetch files from the network. > >> From what I remember, it is surprisingly difficult to convince > ‘easy_install’ that it should never access the network, even when you > think you're only performing local operations. Probably it's best to > test this in a virtual machine isolated from the network, to be sure it > succeeds. Correct - using easy_install to install the egg doesn't fetch files from the network. I haven't tried this in a virtual machine, but it definitely works fine on the Fedora builders which are pretty well hardened to have no network access. >> The reason I do this is because wxpython3.0 occupies the 'namespace' >> for the wx module for python2. In other words, both wxpython3.0 and >> wxpython4.0 have a 'wx' module for python2. In order to avoid a >> conflict, I install the wxpython4.0 version as an egg. > > How does that avoid the conflict — that is, what is the effect of > installing the egg such that a namespace conflict is avoided? > > I ask because it is likely that today's Python has a better way of > achieving the effect you're wanting, so that ‘easy_install’ is not > needed. Installing the egg means that all the wxpython4.0 files are installed under: /usr/lib/python2.7/dist-packages/wxPython-4.0.1-py2.7-linux-amd64.egg Thus, any program or user who does an 'import wx' will get the wxpython3.0 module and if instead the wxpython4.0 module is desired, the user must manually insert the above path into sys.path or PYTHONPATH. Scott
Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Removal of easy_install Scott Talbert <swt@techie.net> - 2018-05-07 03:50 +0200
Re: Removal of easy_install Ben Finney <bignose@debian.org> - 2018-05-07 04:30 +0200
Re: Removal of easy_install Thomas Goirand <zigo@debian.org> - 2018-05-07 14:30 +0200
Re: Removal of easy_install Scott Talbert <swt@techie.net> - 2018-05-07 16:00 +0200
Re: Removal of easy_install Ben Finney <bignose@debian.org> - 2018-05-08 02:00 +0200
Re: Removal of easy_install Scott Talbert <swt@techie.net> - 2018-05-08 02:50 +0200
Re: Removal of easy_install Ben Finney <bignose@debian.org> - 2018-05-08 03:50 +0200
Re: Removal of easy_install Matthias Klose <doko@debian.org> - 2018-05-09 12:40 +0200
csiph-web