This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author paul.moore
Recipients alexis, eric.araujo, paul.moore, tarek
Date 2011-10-14.18:11:06
SpamBayes Score 2.5896776e-08
Marked as misclassified No
Message-id <1318615867.17.0.772590919076.issue13181@psf.upfronthosting.co.za>
In-reply-to
Content
The title explains. Here is an example:

PS D:\Data\python-sample\python> pysetup install
Installing from source directory: 'D:\\Data\\python-sample\\python'
running install_dist
running build
running build_py
running install_lib
byte-compiling D:\Data\cpython\Lib\site-packages\hello.py to hello.cpython-33.pyc
running install_distinfo
creating D:\Data\cpython\Lib\site-packages\hello-0.1.dist-info
creating D:\Data\cpython\Lib\site-packages\hello-0.1.dist-info\METADATA
creating D:\Data\cpython\Lib\site-packages\hello-0.1.dist-info\INSTALLER
creating D:\Data\cpython\Lib\site-packages\hello-0.1.dist-info\REQUESTED
creating D:\Data\cpython\Lib\site-packages\hello-0.1.dist-info\RECORD
PS D:\Data\python-sample\python> pysetup remove hello
Removing 'hello':
  D:\Data\cpython\Lib\site-packages\hello.py
  D:\Data\cpython\Lib\site-packages\hello-0.1.dist-info\METADATA
  D:\Data\cpython\Lib\site-packages\hello-0.1.dist-info\INSTALLER
  D:\Data\cpython\Lib\site-packages\hello-0.1.dist-info\REQUESTED
  D:\Data\cpython\Lib\site-packages\hello-0.1.dist-info\RECORD
Proceed (y/n)? y
Success: removed 5 files and 1 dirs
PS D:\Data\python-sample> dir D:\Data\cpython\Lib\site-packages\__pycache__


    Directory: D:\Data\cpython\Lib\site-packages\__pycache__


Mode                LastWriteTime     Length Name
----                -------------     ------ ----
-a---        14/10/2011     18:53        314 hello.cpython-33.pyc

The pyc file should have been removed. It's not critical (the pyc file gets ignored, see PEP 3147) but as pysetup created it, pysetup should remove it...
History
Date User Action Args
2011-10-14 18:11:07paul.mooresetrecipients: + paul.moore, tarek, eric.araujo, alexis
2011-10-14 18:11:07paul.mooresetmessageid: <1318615867.17.0.772590919076.issue13181@psf.upfronthosting.co.za>
2011-10-14 18:11:06paul.moorelinkissue13181 messages
2011-10-14 18:11:06paul.moorecreate