1
Python / 'adding' Modules To A Read Only Image
« on: February 16, 2005, 12:13:01 pm »
This is probably obvious but I thought I should mention it.
If you are using kopsis' excellent read-only, compressed python image you can still add modules to the system even thought the site-packages directory is read-only.
Create a directory on you internal drive (I call mine /home/zaurus/python_mod) and then add to your .profile file the line
You can now add modules to this directory as much as you want/have space for.
WARNING!!! This adds PYTHONPATH to the start of python's search path so if you add modules with the same name as in the image the new ones will be called first. This may or may not be a good thing
If you are using kopsis' excellent read-only, compressed python image you can still add modules to the system even thought the site-packages directory is read-only.
Create a directory on you internal drive (I call mine /home/zaurus/python_mod) and then add to your .profile file the line
Code: [Select]
export PYTHONPATH=/home/zaurus/python_mod
You can now add modules to this directory as much as you want/have space for.
WARNING!!! This adds PYTHONPATH to the start of python's search path so if you add modules with the same name as in the image the new ones will be called first. This may or may not be a good thing