Joined: July 2005
||Posted: Aug. 10 2005,18:21
Ok, the following steps will install the pyParallel Python module to work with the standard python.uci MyDSL extension. It's also likely to work with the python.dsl MyDSL extension, but I haven't tested that. This technique should work fine for Live CD, frugal, and HD installs.
Note that everything installed using the technique below will end up in your /home/dsl directory making it easy to preserve through DSL's normal backup/restore functionality. Also note that this technique will work with pretty much any Python module that is designed for installation via distutils (which is almost all publicly released Python stuff) and is pure Python (doesn't require compiling any C code).
Ok, here we go ...
1) Get the source code for the module. In this case you can download pyParallel from its Sourceforge project page. Save the file to your /dsl/home/ directory.
2) Extract the contents of the zipfile. Open an Aterm and use the command "unzip pyparallel-0.2.zip".
3) Go to the directory with the extracted source files ("cd pyparallel-0.2").
4) Install using the command "/opt/python/bin/python setup.py install --home=~"
At that point the pyParallel module is installed. To test it do the following:
1) Set your PYTHONPATH environment variable so Python can locate modules in your home dir ("export PYTHONPATH=/home/dsl/lib/python"). Note that the setting described here should let Python find any number of modules installed following this technique -- you don't have to add each individual module directory to the PYTHONPATH.
2) Run Python ("/opt/python/bin/python").
3) Load the module ("import parallel") ... if it loads without errors you're good to go!
If the module loads, you can clean up /home/dsl/ by deleting the "pyparallel-0.2.zip" file and the "pyparallel-0.2" directory.
That's all there is to it. A variation on this is to use the command ("/opt/python/bin/python setup.py install --prefix=somepath") where "somepath" is the full path to the directory where you want the module files installed. This allows installing directly to a mounted hard disk partition instead of your /home/dsl/ directory. Just remember to set your PYTHONPATH environment variable accordingly. I prefer the --home technique because it keeps the PYTHONPATH simple and keeps all my installed Python modules in my backup.tar.gz so they're easily moved to from one DSL system to another.