Is it possible to install Nose (http://somethingaboutorange.com/mrl/projects/nose/0.11.1/) into a subdirectory of my home directory on a Linux machine? (I'm not on the sudoers list for that machine.) If so, how do I do that?
Is it possible to install Nose (http://somethingaboutorange.com/mrl/projects/nose/0.11.1/) into a subdirectory of my home directory on a Linux machine? (I'm not on the sudoers list for that machine.) If so, how do I do that?
The answer is to use virtualenv.
But I didn't mention that (because I'm not on the sudoers list), I also did a custom Python install. When I installed correctly following Crast's instructions in https://stackoverflow.com/questions/2278028/how-do-i-work-around-this-problem-creating-a-virtualenv-environment-with-a-custom/2278059#2278059, I was able to install nose using that version of Python.
Update: I didn't notice until now that when I actually run
nosetests
, I get:I'll try reinstalling with the
--root
option as suggested in the other answer.Also most setup.py scripts support a custom root directory setting. So you can use them like:
Having that subdirectory in PYTHONPATH, you shall be able to get access to modules that you installed there.