X-Git-Url: https://iankelling.org/git/?p=iankelling.org;a=blobdiff_plain;f=_site%2Ftechnical-notes%2Fsetup.py-uninstall.html;fp=_site%2Ftechnical-notes%2Fsetup.py-uninstall.html;h=5c870181e3cf91d4bb39c812d0e7ba1a9c668fa9;hp=0000000000000000000000000000000000000000;hb=001299deacd7b5d230416aeda612ca7b40e13ffc;hpb=e81919074554ec1e719f1431667299c9c84dc854 diff --git a/_site/technical-notes/setup.py-uninstall.html b/_site/technical-notes/setup.py-uninstall.html new file mode 100644 index 0000000..5c87018 --- /dev/null +++ b/_site/technical-notes/setup.py-uninstall.html @@ -0,0 +1,84 @@ + + + + + setup.py uninstall + + + + + + + + + +
+
+

setup.py uninstall

Contents +

Unix-like

+ +

Install over the existing installation with the same sources, recording installed files, then delete them.

+
sudo python setup.py install --record files.txt
+# inspect files.txt to make sure it looks ok. Then in bash:
+tr '\n' '\0' < files.txt | xargs -0 sudo rm -f --
+
+

Windows

+ +

Install on top of the existing installation with a windows installer, then add-remove programs to uninstall.

+
python setup.py bdist_wininst
+dist/foo-1.0.win32.exe
+
+

Use other methods which fully support uninstall when available

+ +

Uninstalling setup.py install has some inherent problems, which usually aren't a problem:

+ + + +

Alternatives

+ + + +

This page is also at stackoverflow answer.

+ +

TODO: contribute this under https://wiki.python.org/moin/Distutils/Cookbook.

+ +
+
+
+ +
+ + +