Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python,': 0.01; 'skip': 0.04; '(internal': 0.07; 'python': 0.08; 'also:': 0.09; 'content- type:multipart/signed': 0.09; 'filename:fname piece:signature': 0.09; 'path.': 0.09; 'setup.py': 0.09; 'files.': 0.09; 'developer': 0.12; '(at)': 0.16; '(dot)': 0.16; '.py': 0.16; 'code?': 0.16; 'content-type:application/pgp-signature': 0.16; 'egg': 0.16; 'filename:fname piece:asc': 0.16; 'filename:fname:signature.asc': 0.16; 'filesystem': 0.16; 'inevitably': 0.16; 'ties': 0.16; 'true)': 0.16; 'wrote:': 0.16; 'source.': 0.18; 'slightly': 0.19; 'blog:': 0.21; "doesn't": 0.22; 'header:In-Reply-To:1': 0.22; 'compiled': 0.23; 'calls.': 0.23; 'introductory': 0.23; 'received:209.85.213.46': 0.23; 'received :mail-yw0-f46.google.com': 0.23; 'pm,': 0.24; 'testing': 0.24; 'load': 0.26; 'seeing': 0.28; 'fine.': 0.29; 'subject: .': 0.29; 'script': 0.29; 'do.': 0.30; 'hansen': 0.30; 'equivalent': 0.31; 'version': 0.32; 'received:24': 0.32; 'does': 0.32; "isn't": 0.33; "what's": 0.33; 'actually': 0.33; "can't": 0.33; 'to:addr:python- list': 0.33; "i've": 0.34; 'someone': 0.34; '...': 0.34; 'but,': 0.34; 'all.': 0.34; 'data,': 0.35; 'regular': 0.35; 'anything': 0.36; 'file': 0.36; 'created': 0.36; 'but': 0.37; 'install': 0.37; 'open': 0.37; 'received:google.com': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.39; 'files,': 0.39; 'difficult': 0.39; 'to:addr:python.org': 0.39; 'setup': 0.40; 'leave': 0.40; 'your': 0.61; 'back': 0.62; 'our': 0.63; 'zip': 0.64; 'day': 0.69; 'header :Reply-To:1': 0.71; 'reply-to:no real name:2**0': 0.71; 'mail:': 0.73; 'confirm': 0.73; 'machine,': 0.84; 'package?': 0.84; 'url:io': 0.93 Sender: Ixokai Date: Sat, 27 Aug 2011 16:44:44 -0700 From: Stephen Hansen MIME-Version: 1.0 To: python-list@python.org Subject: Re: Understanding .pth in site-packages References: <31bef8dc-d804-454d-85c7-8de1663052a8@glegroupsg2000goo.googlegroups.com> <2763f908-2feb-4d2f-b422-433de26b2868@glegroupsg2000goo.googlegroups.com> <8600c2da-7d79-4e50-b032-9cbe03cf31bc@glegroupsg2000goo.googlegroups.com> In-Reply-To: <8600c2da-7d79-4e50-b032-9cbe03cf31bc@glegroupsg2000goo.googlegroups.com> X-Enigmail-Version: 1.1.1 OpenPGP: id=555B1FE5; url=http://id.ixokai.io/pub.asc Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigD71986770D3786CE24CED375" X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: me+list/python@ixokai.io List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 61 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1314488691 news.xs4all.nl 2474 [2001:888:2000:d::a6]:58352 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:12319 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigD71986770D3786CE24CED375 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 8/27/11 3:41 PM, Josh English wrote: > I have .egg files in my system path. The Egg file created by my setup s= cript doesn't include anything but the introductory text. If I open other= eggs I see the zipped data, but not for my own files. Sounds like your setup.py isn't actually including your source. >=20 > Is having a zipped egg file any faster than a regular package? or does = it just prevent people from seeing the code? IIUC, its nominally very slightly faster to use an egg, because it can skip a lot of filesystem calls. But I've only heard that and can't completely confirm it (internal testing at my day job did not conclusively support this, but our environments are uniquely weird). But that speed boost (if even true) isn't really the point of eggs-as-files -- eggs are just easy to deal with as files is all. They don't prevent people from seeing the code*, they're just regular zip files and can be unzipped fine. I almost always install unzip my eggs on a developer machine, because I inevitably want to go poke inside and see what's actually going on. --=20 Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io ... Blog: http://meh.ixokai.io/ * Although you can make an egg and then go and remove all the .PY files from it, and leave just the compiled .PYC files, and Python will load it fine. At the day job, that's what we do. But, you have to be aware that this ties the egg to a specific version of Python, and its not difficult for someone industrious to disassemble and/or decompile the PYC back to effectively equivalent PY files to edit away if they want. --------------enigD71986770D3786CE24CED375 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.10 (Darwin) iQEcBAEBAgAGBQJOWYFsAAoJEKcbwptVWx/l16oIAIv6U0Y+wVP3TszeZ+Wfh3uz IeE5A7g5XGsykKv/vPtTWEdepBdYIDvz4TUcpFKlfTLp64l//SPx1DDOpfrtjDJe p5103k/o0P980Ke6ASKyIHndFQqJ/FQcsAnMHS/vIuahjOqCj2AF/FOCTRP35cvb bZTucVsAEW7JsBo7LsJl2p1YySZt79DgHyWhY6lGPTVZQ3ye0t9dDegCF7YnK1kd sSNwguFhjUh0OaNHcwr3eoUrWYPea3/695lJaGToYMAtqGEq4Y0EaxMgBMpo0oHa aY0TUW9qzZEqm/MYn0DEj/aPTDXO7L94Tk60BSMwzo90syTdpCNI3KKRPB5Vx40= =sArL -----END PGP SIGNATURE----- --------------enigD71986770D3786CE24CED375--