Size: 970
Comment:
|
Size: 1046
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 15: | Line 15: |
'''Q.''' ''How can you use distutils (i.e., your setup.py file) to '''un'''install a given package?'' | '''Q.''' ''Can you use distutils (i.e., your setup.py file) to '''un'''install a given package?'' '''A.''' Unfortunately, no. This would be a useful feature to have though... |
"distutils" is by now the standard mechanism to distribute Python packages and extensions, and appeared in Python 1.6. It runs under 1.5.2 though, but you have to install it (once) to use it for that Python version.
Documentation:
[http://docs.python.org/dist/dist.html Distributing Python Modules] - information for developers
[http://docs.python.org/inst/inst.html Installing Python Modules] - information for users and system administrators
[http://www.python.org/sigs/distutils-sig/ distutils SIG]
[http://www.mechanicalcat.net/tech/pypi/pypi-xmlrpc.html PyPI's XML-RPC interface] for querying the packages database
Projects:
DistutilsProjects - please add a listing to this page if you're working on Distutils (and help us reduce duplication of effort)
DistUtilsExtensions is a repository of extensions for your "setup.py".
Q. Can you use distutils (i.e., your setup.py file) to uninstall a given package?
A. Unfortunately, no. This would be a useful feature to have though...