3

是否有任何网络托管服务提供商在其 python 模块中包含 pysvn ( http://pysvn.tigris.org/ ),或者允许您添加其他模块以便我自己安装?非常感谢。

4

1 回答 1

1

If you have shell access you can install pretty much anything to your home directory. Just make sure the path you install the module to is added to your PYTHONPATH environment variable.

say /home/harry is your home directory, you install pysvn to /home/harry/lib in your .bash_profile add:

PYTHONPATH=/home/harry/lib:$PYTHONPATH
export PYTHONPATH

login and log out again. This will put it into the environment and python will find the modules in /home/harry/lib see the python docs on modules for more info on how python searches for modules.

The only real caveat is, if your host doesn't have all the files needed to build pysvn (such as svn header files), you'll have to install them also.

with that said I like webfaction (which is nice towards these things and python development) and this question might be better in webmasters.stackexchange.com

于 2011-04-12T14:00:12.727 回答