Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: cl@isbd.net Newsgroups: comp.lang.python Subject: Egg help wanted Date: Fri, 3 Oct 2014 15:08:43 +0100 Lines: 18 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net aqNV+RtmG/iPBe8Aoq+K+Qvf8q0UYIkVElIaBHseIsvmQzd5U= X-Orig-Path: not-for-mail Cancel-Lock: sha1:e++kx/pf+xfI1xVpay1JGYh0kaU= User-Agent: tin/2.2.0-20131224 ("Lochindaal") (UNIX) (Linux/3.13.0-36-generic (x86_64)) Xref: csiph.com comp.lang.python:78650 I have installed (using easy_install) a little utility, it seems to have installed just the top-level python script in /usr/local/bin which in turn uses load_entry_point() to run the actual code. As far as I can see the code and support files remain in the .egg file in /usr/local/lib/python2.7/dist-packages, is this right? I.e. is the egg file unzipped 'on the fly' when the program is called? Reading the documentation for pkg_resources it sounds like it will also work if I unpack the .egg file into a directory of the same name also put in /usr/local/lib/python2.7/dist-packages. Have I understood this correctly? I want to do this to make it easy to do trivial edits to the program rather than having to move it all back into a proper development environment. -- Chris Green ยท