<div class="gmail_quote">On Mon, Mar 5, 2012 at 4:47 PM, Paul Moore <span dir="ltr"><<a href="mailto:p.f.moore@gmail.com">p.f.moore@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Is there a good spec of the egg-info (directory) format anywhere? </blockquote><div><br></div><div>The official spec is <a href="http://peak.telecommunity.com/DevCenter/EggFormats">http://peak.telecommunity.com/DevCenter/EggFormats</a></div>
<div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">- What files are mandatory?<br></blockquote><div>PKG-INFO - that's it. The rest are optional - see <a href="http://peak.telecommunity.com/DevCenter/EggFormats#standard-metadata">http://peak.telecommunity.com/DevCenter/EggFormats#standard-metadata</a></div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
- What format should files be in (specifically, line-ending format and<br>
to an extent encoding)<br></blockquote><div><br></div><div>Setuptools doesn't define an encoding, and it treats any line ending character(s) as line ending characters in the files it reads. Think universal newlines.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
- Should filenames in installed-files.txt be absolute or relative (and<br>
if relative, then to what)?<br></blockquote><div><br></div><div>That's defined by the appropriate PEP; setuptools doesn't yet support an installed-files log.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
- Directory name format is PACKAGE-VERSION-PYVERSION.egg-info,<br>
correct? Always? </blockquote><div><br></div><div>The minimum is PACKAGE.egg-info, which is used for "setup.py develop" installs/usage.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
What about platform-specific binaries? Do they need a<br>
platform ID in there?<br></blockquote><div><br></div><div>That goes in the .egg filename, yes. See:</div><div><br></div><div><a href="http://peak.telecommunity.com/DevCenter/EggFormats#filename-embedded-metadata">http://peak.telecommunity.com/DevCenter/EggFormats#filename-embedded-metadata</a></div>
<div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Also, what is the defined filename format for egg files and wininst<br>
executables? Is that defined anywhere (it seems to be more or less<br>
PACKAGE-VERSION-PYVERSION[-PLATFORM].egg for eggs, and<br>
PACKAGE-VERSION[.PLATFORM][-PYVERSION].exe for wininst).<br></blockquote><div><br></div><div>The wininst format is distutils defined rather than setuptools-defined; for the rest, see the above link.</div><div> </div><div>
<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If necessary, I can read the code from distutils/setuptools, but there<br>
seem to be odd variations on the cheeseshop, and I'd rather be sure<br>
what's accepted than stick purely to what the tools generate. But if<br>
what the tools generate is all that's going to be reliably accepted,<br>
then great, I'll go with that.<br>
<br>
My main interest is in what pip accepts, FWIW. (I'm trying to write a<br>
pip-compatible binary file installer).<br>
<br>
Paul.<br>
_______________________________________________<br>
Distutils-SIG maillist - <a href="mailto:Distutils-SIG@python.org">Distutils-SIG@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/distutils-sig" target="_blank">http://mail.python.org/mailman/listinfo/distutils-sig</a><br>
</blockquote></div><br>