1. Tarek Ziadé
  2. distribute
  3. Issues
Issue #9 resolved

find_on_path on systems with tight permissions

Hanno Schlichting
created an issue

This is a copy of http://bugs.python.org/setuptools/issue58:


I'm using setuptools on a server with tight permissions; a normal user is not allowed to list the contents of certain directories, including /usr/bin, which setuptools tries to scan when searching for .egg files. Thus, running any command installed from setuptools fails with

OSError: [Errno 13] Permission denied: '/usr/bin'

The following change in find_on_path(), in pkg_resources.py, makes it ignore directories which it cannot read:

-if os.path.isdir(path_item): +if os.path.isdir(path_item) and os.access(path_item, os.R_OK):

Do you think this could be applied?

Thanks, Andre

Comments (1)

  1. Log in to comment