473,761 Members | 5,758 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

why no python setup.py uninstall?

If the cannonical way to install a python app is

python setup.py install

one would expect the following to uninstall it

python setup.py uninstall

However, distutils doesn't automatically take care of that for you.

Is this by design? Or is this something that could/should be addressed
in a future version of distutils?

The reason this came up for me is that I have a scheduled script that
downloads the cvs/svn versions of certain python apps (w/extensions),
and then builds and installs them to site-packages automatically by
'python setup.py install'. Just to be extra clean about it, I would
prefer to uninstall first, and then install.
AK
PS: I also have to manually uninstall apps from Mac OS X panther:
searching for .plists etc. I wonder if that was deliberate or
otherwise too... hmm...
Jul 18 '05 #1
8 3245
I'm guessing that this is a non-issue for most people (-;
Jul 18 '05 #2
Alia Khouri wrote:
I'm guessing that this is a non-issue for most people (-;


Well, you've allowed all of about 1.5 days for replies
to come, and on a weekend at that.

Be patient.

I would also guess it's a non-issue as well, however.
A quick perusal of the archives (which I leave to you)
would very likely show almost no discussion of this in
the past few years (at least, that's what I recall).

On your specific reason for asking: I would suggest
just not worrying about "being extra clean about it".
Python's generally pretty good about not messing up
when you install a new version of something without
uninstalling the previous version.

-Peter
Jul 18 '05 #3
Peter Hansen wrote:
Alia Khouri wrote:
I'm guessing that this is a non-issue for most people (-;

Well, you've allowed all of about 1.5 days for replies
to come, and on a weekend at that.

Be patient.

I would also guess it's a non-issue as well, however.
A quick perusal of the archives (which I leave to you)
would very likely show almost no discussion of this in
the past few years (at least, that's what I recall).

On your specific reason for asking: I would suggest
just not worrying about "being extra clean about it".
Python's generally pretty good about not messing up
when you install a new version of something without
uninstalling the previous version.

-Peter


"Cleanlines s is next to godliness". Why not facilitate a cleanup?

This is not a big issue but it does deserve a response.

Colin W.
Jul 18 '05 #4
Peter Hansen wrote:
On your specific reason for asking: I would suggest
just not worrying about "being extra clean about it".
Python's generally pretty good about not messing up
when you install a new version of something without
uninstalling the previous version.


Granted. However, the reason I did bring this up to begin with was the
odd 'exceptional' case when doing the python setup.py install
incantation over an older installation did cause problems.

I think a little database (maybe in xml?) of installed files/modules
and their locations would be useful, perhaps even for a future
automatic download/installation/dependency-tracking thingmabob that
still regretably still doesn't exist as parth of the stdlib in
Pythonia.

AK

Jul 18 '05 #5

Peter Hansen wrote:
On your specific reason for asking: I would suggest
just not worrying about "being extra clean about it".
Python's generally pretty good about not messing up
when you install a new version of something without
uninstalling the previous version.


Granted. However, the reason I did bring this up to begin with was the
odd 'exceptional' case when doing the python setup.py install
incantation over an older installation did cause problems.

I think a little database (maybe in xml?) of installed files/modules
and their locations would be useful, perhaps even for a future
automatic download/installation/dependency-tracking thingmabob that
still regretably still doesn't exist as parth of the stdlib in
Pythonia.

AK

Jul 18 '05 #6

<al*********@ya hoo.com> wrote in message news:11******** **************@ z14g2000cwz.goo glegroups.com.. .
I think a little database (maybe in xml?) of installed files/modules
and their locations would be useful, perhaps even for a future
automatic download/installation/dependency-tracking thingmabob that
still regretably still doesn't exist as parth of the stdlib in
Pythonia.


Actually it does, indirectly

Instead of doing 'python setup.py install', change the last parameter
to bdist. You can add --format wininst, --format rpm and various
other choices to make a package native to your platform. You can
then use your platform tools to install and uninstall the files.
Or you can use the zip/tar formats and keep track of the files by
whatever means you want to.

http://docs.python.org/dist/built-dist.html

Roger
Jul 18 '05 #7
Roger Binns wrote:
<al*********@ya hoo.com> wrote in message
news:11******** **************@ z14g2000cwz.goo glegroups.com.. .
I think a little database (maybe in xml?) of installed files/modules
and their locations would be useful, perhaps even for a future
automatic download/installation/dependency-tracking thingmabob that
still regretably still doesn't exist as parth of the stdlib in
Pythonia.


Actually it does, indirectly


Sorry, missed the OP. See PEP 261 for the plans in this area:

http://python.org/peps/pep-0262.html

combined with extensions to the setup.py metadata in:

http://python.org/peps/pep-0314.html

Most of the design / planning has been done. All we need is some developer
time to make it happen. Go visit the Catalog SIG if you're interested.

http://www.python.org/sigs/catalog-sig/
Richard

Jul 18 '05 #8
Installing new versions of modules over old versions has often caused
me problems. Particularly py3exe recently.

Admittedly 'uninstalling' the old version was as simple as deleting the
folder from 'site-packages'.....

Regards,

Fuzzy
http://www.voidspace.org.uk/atlantib...thonutils.html

Jul 18 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

26
2704
by: billiejoex | last post by:
Hi all. I'm sorry for a noob question like this but I'll try to ask it anyway. One of the greatest problem that may discourage a new user to choose Python language is it's interpreted nature. Another important problem is that no interpreter is installed on Windows machine by default and this makes harder to distribute the software. Does it is planned that, in a far future, Python will implement a form of compilation? This would be...
5
2690
by: George | last post by:
VB.net 2003 standard, XP windows home edition. Installed first application OK today. When I removed the application via Control Panel, there were no problems and the app folders were deleted. But when I installed the app from a CD-ROM (Release folder is in D:), when I remove the app in Control Panel these problems occur: Control Panel does not delete the application folders. When I try to delete them I get message "Cannot delete file:...
5
2182
by: seberino | last post by:
It appears that apps distributed as Python Eggs are either a single compressed blob in site-packages directory or a directory under site-packages directory. Is this ALWAYS true? So by just erasing stuff under site-packages I can do a COMPLETE uninstallation of an Egg? Chris
9
3761
by: Jack | last post by:
Installing a Python package is easy, most of time just "Setup.py install" However, setup.py doesn't seem to support an uninstall command. If I want to delete a package that I do not use any more, should I just manually delete the corresponding sub directory under Lib\site-packages?
0
2104
by: JM | last post by:
Hi Everybody, I have created a setup project in Visual Studio .NET 2005. The setup is for Windows application. It works fine but I am unable to do somethings is this: 1. The setup uses couple of files and dlls. There are 2 files: one is help.xml file and other is help.chm file. Both have same properties in setup project. But after uninstall, help.chm file is removed from the install directory but help.xml remains there.
5
4245
by: siggi | last post by:
Hi all, installing a package with 'setup.py' is easy. But how do I uninstall the package, once I want to get rid of it again? Thanks, siggi
1
1839
by: walterbyrd | last post by:
Lets suppose, I want a listing of what hardware and software is installed on my windows box. Can I do that with Python?
0
1656
by: StefanPienaar | last post by:
Hi I'm getting some really weird and unexpected behaviour when I build a setup project in Visual Studio 2005 containing an application I wrote. The installation runs fine and the application work 100%, BUT... As soon as the original setup files (the setup.exe and setup.msi) are delete or no longer available (Cd is ejected) the application refuses to run. It also does not want to uninstall using the Add/Remove dialog in the control panel as...
6
5748
by: globalrev | last post by:
type "python setup.py install" that is used in most "addons" for python. well using windows vista, where the h*** am i supposed to type this? if it is not doable in windows, what do i have to do instead? just clicking the setup.py-file never works.
0
9554
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9377
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9989
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9925
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9811
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7358
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6640
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5405
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3509
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.