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

Create issue
Issue #50 resolved
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 distribute_setup.py Extracting in /tmp/tmp2qLiCG Now working in /tmp/tmp2qLiCG/distribute-0.6.1 Installing Distribute Traceback (most recent call last): File "setup.py", line 27, in <module> from distribute_setup import before_install File "/tmp/tmp2qLiCG/distribute-0.6.1/distribute_setup.py", line 16, in <module> from site import USER_SITE ImportError: cannot import name USER_SITE Traceback (most recent call last): File "distribute_setup.py", line 413, in <module> main(sys.argv[1:]) File "distribute_setup.py", line 410, in main _install(tarball) File "distribute_setup.py", line 64, in _install assert python_cmd('setup.py install') AssertionError }}}

Comments (2)

  1. Former user Account Deleted

    I think I see the fix in the repo. Thanks, and sorry for the itchy trigger finger. :-)

  2. Log in to comment