Hi all -- as no doubt many of you are aware, the default behaviour for the "bdist" command is to create a "dumb" built distribution -- a /-relative tarball on Unix, and a prefix-relative ZIP file on Windows. I have at times had vague plans for making the Unix default whatever is sensible on the current platform: an RPM, a Debian package, a Free BSD package, a Solaris package, etc. etc. I propose two changes to this: * make a dumb tarball the permanent and everlasting default for Unix: I don't want to write code that attempts to figure out if the current system is RPM-based or Debian-based or uses some other packaging tool (and I'm not keen on adding Marc-André's über-"grok this platform" module -- it's just too big) * make "wininst" the default format on Windows; I'm not aware of any problems with this spiffy little self-installing ZIP file generator, so why the heck not make it the default? Any opinions? If not, I'll go ahead and make this change and check it in as soon as the Python 2.0b1 code freeze is lifted (err, if it isn't already...) Greg -- Greg Ward gward@python.net http://starship.python.net/~gward/ If ignorance is bliss, why aren't there more happy people?
"GW" == Greg Ward <gward@python.net> writes:
GW> Any opinions? If not, I'll go ahead and make this change and GW> check it in as soon as the Python 2.0b1 code freeze is lifted GW> (err, if it isn't already...) Have at it, Greg! We've already built the tar ball, the Windows installer, and the RPM. We're just finishing up the HTML now. Jeremy
Greg Ward wrote:
Ok, but could you then at least make the archives platform name an option then ? I wrote platform.py for just this reason (it is used in the mxCGIPython project) and would of course like to reuse its functionality for distutils too. Perhaps you could make distutils use platform.py on an availability basis: try to import it and fall back to sys.platform otherwise.
It's cool, yes... but it didn't work for me (I seem to be the unlucky guy in this forum ;-() with Tim's Python 2.0 pre-release: it says that it can't find a usable Python installation and the [...] button doesn't allow me to select a proper target. I'll try again with the final 1.6 Windows version. -- Marc-Andre Lemburg ______________________________________________________________________ Business: http://www.lemburg.com/ Python Pages: http://www.lemburg.com/python/
Marc-Andre wrote:
The status of bdist_wininst in the 1.6 and 2.0b distributions is a little bit messy. This is partly because I have been very busy with private things over the last four weeks. My apologies for this. 1.6 final has distutils version 0.9.1. bdist_wininst still uses the old GUI, and only (hardcoded) knows about the 1.5 and 1.6 python versions in the registy. It also has some bugs which were fixed in the meantime: 'setup.py bdist_wininst' fails when the 'dist' directory does not exist. 2.0b1 has distutils version 0.9.2. bdist_wininst uses the new GUI, no hardcoded python version strings any more, no requirement for zlib. Seems to work fine, although some features are missing: - does not take care of the 'extra_path' argument. - does not compile pyc and/or pyo files. I have prepared a new version, which I will check in as soon as I get ssh installed and working correctly. Thomas
On 06 September 2000, M.-A. Lemburg said:
Good idea -- done, at least for bdist_dumb. Now you can run python setup.py bdist --formats=gztar,zip \ --plat-name=linux-2.2-redhat-glibc2.1-i586 or, equivalently (except for the multitude of formats): python setup.py bdist_dumb --plat-name=linux-2.2-redhat-glibc2.1-i586 if you are determined to assault your users with that level of detail. Note that thanks to recent changes to util.get_platform() (not yet checked in, awaiting comment from the SIG), the default platform name is now more useful than Python's vanilla sys.platform, but not as exhaustive (or expensive to compute, I'm guessing) as whatever your platform.py spits out. Greg -- Greg Ward gward@python.net http://starship.python.net/~gward/
participants (4)
-
Greg Ward
-
Jeremy Hylton
-
M.-A. Lemburg
-
Thomas Heller