Path: csiph.com!aioe.org!bofh.it!news.nic.it!robomod From: Scott Talbert Newsgroups: linux.debian.maint.python Subject: Re: Removal of easy_install Date: Tue, 08 May 2018 02:50:02 +0200 Message-ID: References: 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: 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: archive/latest/15912 List-ID: List-URL: 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: X-Original-References: <85d0y8p5q6.fsf@benfinney.id.au> <858t8vowhu.fsf@benfinney.id.au> Xref: csiph.com linux.debian.maint.python:10508 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---2033333575-2054020545-1525740580=:30311 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8BIT 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 ---2033333575-2054020545-1525740580=:30311--