problem with "setup.py bdist --formats=zip"

From: Humpdydum (oliver.schoenborn_at_utoronto.ca)
Date: 11/12/04


Date: Fri, 12 Nov 2004 10:57:36 -0500

I would like to create a "binary" distribution for Windows, but in zip
format, since the installer requires root access. I don't want to use sdist
because that includes all the C source and the source for generating
documentation etc.

When I try bdist_dumb, or "bdist --formats=zip", the zip has the files with
*absolute* paths, as found on *my* system. This doesn't seem to make sense,
since anyone with Python not installed in the same place as mine won't be
able to unzip the distribution. Section 6.1 of python 2.3 docs has only one
line of text saying something about "absolute" vs "relative" and "not
implemented yet", somewhat surprising.

So how do people do this? I guess I could create a MANIFEST_bin.in where I
remove all the source stuff I don't want and replace sys.argv[1] with
"sdist" if I find "bdist" there, but that doesn't seem very robust. Plus I
then don't get the benefit of "bdist"-related stuff like putting "win32" in
the zip file name, etc. Surely I'm not the only one who needs this?

Thanks,
Oliver



Relevant Pages

  • Re: Standalone Python Programs...
    ... Something like py2exe which creates a "distribution" containing ... only the things (dll's and compiled+compressed Python modules) ... need to have a set of files "installed" using an installer. ... Inno Setup has proven to be flexible ...
    (comp.lang.python)
  • Re: Feedback wanted on programming introduction (Python in Windows)
    ... versions of Python, where Python 3.x is effectively a new language, and ... where apparently ActiveState has no installer for that, ... and there goes my example of that, so on), but it's a more clean language. ... some time because I had to uninstall and install again to create new screenshot, and, thus discovered the module docs server in the mainstream distribution :-). ...
    (comp.lang.python)
  • Re: Python Light Revisted?
    ... the installer from python.org, 16MB for ActiveState .exe installer. ... I really don't think that it's worth trying to compress the standard distribution any further, given that it isn't really bloatware. ... I could see an enlarged Python that includes Twisted along with the standard library, and in fact ActiveState's includes win32 stuff. ...
    (comp.lang.python)
  • Re: Python Light Revisted?
    ... I don't see the point to making the distribution any smaller. ... the installer from python.org, 16MB for ActiveState .exe installer. ... I could see an enlarged Python that ...
    (comp.lang.python)
  • Re: Sysinstall is still inadequate after all of these years
    ... The DragonFlyBSD installer runs on top of a live CD, ... Our distribution CD's run about 300MB. ... including a lot of packages on it. ... Compression of the base system creates lots and lots of ...
    (freebsd-hackers)

Loading