welcome: please sign in

The following 95 words could not be found in the dictionary of 7 words (including 7 LocalSpellingWords) and are highlighted below:
adjusted   all   and   another   are   avoid   between   by   byte   cache   Cache   change   code   compatibility   compatible   compile   compileall   current   data   default   deleting   dir   directory   does   done   elsewhere   Empty   empty   example   faster   files   for   grant   hand   If   import   in   installation   installed   interpreter   into   is   issues   keep   lib   Location   may   mind   move   must   needed   new   not   of   packages   page   Page   pages   path   precompiled   problem   problems   process   py   pyc   python   python2   recompile   reinstall   rendering   running   scripts   setup   should   site   some   step   sys   that   The   the   there   this   to   To   underlay   Updating   use   uses   usr   versions   want   You   you   your  

Clear message
Page Locked

HelpOnUpdatingPython

1. Updating Python

If you want to change the Python running your MoinMoin installation there are some issues to keep in mind:

1.1. Location of the MoinMoin directory

The default installation process (setup.py) installed the MoinMoin files into the site-packages directory of the current Python installation (for example /usr/lib/python2.4/site-packages). If you move to another Python interpreter you must reinstall the MoinMoin files into the new lib/pythonX.X/site-packages directory. If you installed the MoinMoin files elsewhere and adjusted sys.path this is not a problem.

1.2. The precompiled Python files (.pyc)

Python does not grant that .pyc files are compatible between Python versions. If you change the Python interpreter you should recompile the Python scripts. You may use

python -c "import compileall; compileall.compile_dir('/path/to/MoinMoin')"

for this. If you reinstall MoinMoin for the new interpreter the step is not needed/done by setup.py.

1.3. Empty Page Cache

The page cache uses Python byte code for faster page rendering. To avoid compatibility problems you should empty the cache by hand by deleting all files in data/pages/*/cache/ and underlay/pages/*/cache/.