473,473 Members | 2,005 Online
Bytes | Software Development & Data Engineering Community
Create 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 3227
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


"Cleanliness 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*********@yahoo.com> wrote in message news:11**********************@z14g2000cwz.googlegr oups.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*********@yahoo.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.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
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....
5
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. ...
5
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...
9
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,...
0
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...
5
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
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
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...
6
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...
0
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,...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
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...
0
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...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.