[Distutils] Re: [Python-Dev] Killing off bdist_dumb

David Arnold davida@pobox.com
Fri Nov 15 19:16:01 2002


-->"Andrew" == Andrew Kuchling <amk@amk.ca> writes:

  Andrew> (But how can you tell whether a Linux distribution uses RPM
  Andrew> or DEB natively?)

checking for the presence of /etc/redhat_release or
/etc/debian.version (or whatever their actual spelling is) would give
you a good guess.

alternatively, checking for the presence of the debian installer tools
(dpkg, etc) would tend to indicate a debian system, and if that fails,
checking for the rpm binary should do (debian systems can have the rpm
binary installed also, but checking for dpkg first should be ok).




d