Issue #50 resolved

"from site import USER_SITE" == dependency on Python 2.6+

Larry Gilbert
created an issue

I'm unable to install distribute 0.6.1 with Python 2.5.4 because the module "USER_SITE" is missing. I believe this is a system module that did not appear until Python 2.6. (I'm still a relative newbie to Python, so I could be wrong.)

I would remedy this by either (1) letting USER_SITE be optional, if it's not absolutely necessary; or (2) making the dependency on Python 2.6 explicit and explaining this to the user if an install is attempted on any older Python.

{{{ [root@localhost src]# python Extracting in /tmp/tmp2qLiCG Now working in /tmp/tmp2qLiCG/distribute-0.6.1 Installing Distribute Traceback (most recent call last): File "", line 27, in <module> from distribute_setup import before_install File "/tmp/tmp2qLiCG/distribute-0.6.1/", line 16, in <module> from site import USER_SITE ImportError: cannot import name USER_SITE Traceback (most recent call last): File "", line 413, in <module> main(sys.argv[1:]) File "", line 410, in main _install(tarball) File "", line 64, in _install assert python_cmd(' install') AssertionError }}}

Comments (2)

  1. Log in to comment