installation of scspell

Asked by M. Ley

Can I install scspell in a local directory instead of standard python
location that may require root ?

Question information

Language:
English Edit question
Status:
Solved
For:
scspell Edit question
Assignee:
No assignee Edit question
Solved by:
Paul Pelzl
Solved:
Last query:
Last reply:
Revision history for this message
Best Paul Pelzl (pelzlpj) said :
#1

Sure. The following will work for most Python packages with a "setup.py" script, scspell included.

1) Download and extract the source tarball:
$ tar xvzf scspell-0.1.0.tar.gz

2) Install the package somewhere that doesn't require root privileges, e.g. your home dir. The commands below will create an scspell script in $HOME/bin and place Python modules in $HOME/lib/YOUR_PYTHON_VERSION:
$ cd scspell-0.1.0
$ python setup.py install --prefix=$HOME

3) Add the new Python module directory to your Python execution path (you may want to add this to ~/.bashrc so that it happens automatically when you log in):
$ export PYTHONPATH=$PYTHONPATH:$HOME/lib/YOUR_PYTHON_VERSION/site-packages

4) Run ~/bin/scspell to start the application. (You may want to add $HOME/bin to your PATH environment variable, so that you can simply type "scspell".)

Hope that gets you moving in the right direction.

Revision history for this message
M. Ley (lei-ipac) said :
#2

These steps worked fine for me.