Re: [Pythonsiphon-devel] features
Status: Beta
Brought to you by:
ssthapa
From: Suchandra T. <s-t...@al...> - 2002-01-04 20:12:54
|
On Fri, Jan 04, 2002 at 08:19:02PM +0100, Thomas Heller wrote: >=20 > Yes, pure python. Here's the changed code (Install.__unpack): >=20 > def __unpack(self): > """Unpack a package so that it can be built and installed""" > from tarfile import TarFile > tf =3D TarFile(self.__fileName) > tf.untar('.') > return >=20 > >=20 > > > 3. How does ciphon use rpm's under linux? If I understand correctly, > > > you download the .tar.gz package, build an rpm from it, and then > > > install it? Maybe I should do something similar under windows (buildi= ng > > > and then starting a bdist_wininst installer). > >=20 > > Yes, if the user specifies a rpm installation then ciphon builds > > using bdist_rpm and then installs the generated rpm. > Knowing nearly nothing about rpm, what do you gain by this? Uninstallation > support? rpm maintains a database of the installed software, the files installed= by each package, and some metainfo on the files. Besides uninstall support, r= pm allows you to verify the integrity of the files since it tracks the=20 owner, group, permissions, and a md5 hash of the files. rpm also provides= =20 for depedency checking and for running pre or post install and uninstall=20 scripts. =20 > Could installtype simply be 'source' or 'setup' to install by setup.py, > and 'native' or 'system' to use bdist_wininst, rpm, or whatever > is the preferred method for the system? However, this would require another option to specify the native=20 installer since distutils can't determine whether a linux system is using rpm or not. I'm leaning towards adding another option to specify whether the installs are to be made using binary packages or not. This in conjunct= ion with the install type should cover the cases. =20 > BTW: How is uninstallation handled? The bdist_wininst installer includes = an > uninstaller, but this one of course does not remove the packes from > ~/.ciphon/installed.xml... Currently it's not an option. Distutils doesn't record the location of installed files so there isn't a way to uninstall packages. It's possible with windows or rpm or debian based systems however. =20 --=20 ------------------------------------------------------------------ Suchandra S. Thapa=20 s-t...@al... ------------------------------------------------------------------ |