Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Changes between Version 2 and Version 3 of DownGrade


Ignore:
Timestamp:
08/01/06 10:15:29 (13 years ago)
Author:
Kim
Comment:

More minor spelling and formatting

Legend:

Unmodified
Added
Removed
Modified
  • DownGrade

    v2 v3  
    1 So you want to uninstall Turbogears. this could be because of  
     1So you want to uninstall Turbogears. This could be because: 
    22 
    33 1. you found a bug or "feature" and you must go back to an earlier version (or something broke on a live server after upgrading) 
    44 1. you install a SVN co and want to get back to a release version 
    5  1. you just got tired of us, which I hope never happens, if so rant on the mailing list, we'll fix/add/remove your problem if reasonable of course :) 
     5 1. you just got tired of us, which I hope never happens; if so rant on the mailing list, we'll fix/add/remove your problem if reasonable of course :) 
    66 
    77---- 
     
    1414Everything installed by setuptools, is either in easy-install.pth setuptools.pth or a .egg (dir or file) the rest (if any) is either plain disutils or stuff you put there manually. 
    1515 
    16 you will find either a folder or a file that ends in .egg, they are both packages, it only diference is that some packages are "zip safe" and others aren't which just means you can run them for a compress file or you need to uncompress it (to a folder). So from now on a .egg is whichever applies. 
     16you will find either a folder or a file that ends in .egg, they are both packages, the only diference is that some packages are "zip safe" and others aren't, which just means you can run them from a compressed file or you need to uncompress (to a folder). So from now on a .egg is whichever applies. 
    1717 
    1818Another thing to note is that old versions of all packages are not deleted, so if you have been using turbogears/setuptools for a while you will see many versions of the same package. it is safe to delete old versions, but don't delete the ones shown in easy-install.pth which we'll cover in a sec. 
     
    4646}}} 
    4747 
    48 that is everything install by setuptools. (NOT only turbogears stuff). 
     48That is everything installed by setuptools (NOT only turbogears stuff). 
    4949 
    50 if you remove a package from this file, python won't find it even if the dir/file is there. so this is the actual list of packages installed not the content of site-packages. 
     50If you remove a package from this file, python won't find it even if the dir/file is there: this is the actual list of packages installed not the content of site-packages. 
    5151 
    5252== first step Uninstalling current TG == 
    53 the simpliest path is when the only thing you install with easy_install/setuptools, is Turbogears, then you just need to delete all .egg files/dirs and clean the easy-install.pth to look something like this. 
     53The simpliest path is when the only thing you installed with easy_install/setuptools is Turbogears, then you just need to delete all .egg files/dirs and clean the easy-install.pth to look something like this: 
    5454 
    5555{{{ 
     
    5858}}} 
    5959 
    60 if not (and running 0.9+) run ''tg-admin info'', and delete them one by one from easy-install.pth, you can leave the .egg's there if you later want to reinstall that version. 
     60If not (and running 0.9+) run ''tg-admin info'', and delete them one-by-one from easy-install.pth. You can leave the .egg's there if you later want to reinstall that version. 
    6161 
    62 if you have an older version that doesn't has ''tg-admin info'' you will have to look for the dependancies inside the egg file (<site-packages>/<turbogears>/EGG-INFO/requires.txt)  
     62If you have an older version that doesn't have ''tg-admin info'' you will have to look for the dependancies inside the egg file (<site-packages>/<turbogears>/EGG-INFO/requires.txt)  
    6363 
    6464== Installing new version == 
    6565 
    66 if you run the easy_install without params it will get you the lastest version (which is probably what you don't want) 
    67  
    68 So you will have to specify the version via  
     66If you run the easy_install without params it will get you the lastest version (which is probably what you don't want), so you will have to specify the version via  
    6967{{{ 
    7068easy_install PackageName==1.2.3 
    7169}}} 
    7270 
    73 Remenber you need to give the URL in most TG instalations or it will go directly to PyPI, where they only have the 0.8 branch.  
     71Remember that you need to give the URL in most TG instalations or it will go directly to PyPI, where they only have the 0.8 branch.  
    7472 
    75 For example if we are at 0.9a8 and you want to go back to 0.9a6 (as of 7/31/06) 
     73For example if we are at 0.9a8 and you want to go back to 0.9a6 (as of 06/07/31): 
    7674 
    77 On a Unix system you will have to run the following 
     75  on a Unix system you will have to run the following 
     76 
    7877{{{ 
    7978sudo easy_install -f http://www.turbogears.org/preview/download/index.html --script-dir /usr/local/bin TurboGears==0.9a6 
     
    8382== What if there are no eggs for my version? == 
    8483You will have to either upgrade your code or run from a svn co. 
    85 1. locate the revision number from http://trac.turbogears.org/turbogears/browser/tags 
    86 2. do a svn co or svn up to that revision number. 
    87 3. cd into that directory and run 
     84 1. locate the revision number from http://trac.turbogears.org/turbogears/browser/tags 
     85 1. do a svn co or svn up to that revision number 
     86 1. cd into that directory and run 
    8887{{{ 
    8988python setup.py develop 
     
    9998 
    10099 1. delete Turbogears.egg-link. 
    101  1. your done :) 
     100 1. you're done! :) 
    102101 
    103102