<div class="gmail_quote">On Mon, Mar 5, 2012 at 4:47 PM, Paul Moore <span dir="ltr">&lt;<a href="mailto:p.f.moore@gmail.com">p.f.moore@gmail.com</a>&gt;</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&#39;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&#39;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&#39;s defined by the appropriate PEP; setuptools doesn&#39;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 &quot;setup.py develop&quot; 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&#39;d rather be sure<br>
what&#39;s accepted than stick purely to what the tools generate. But if<br>
what the tools generate is all that&#39;s going to be reliably accepted,<br>
then great, I&#39;ll go with that.<br>
<br>
My main interest is in what pip accepts, FWIW. (I&#39;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>