pypa/setuptools (original) (raw)

@jaraco

Recently and inexplicably, tests have started failing on Python 3.2 and earlier in Travis-CI, such as seen in this run. Mainly one test is failing:

_____________________ TestUserInstallTest.test_local_index _____________________

self = <setuptools.tests.test_easy_install.TestUserInstallTest object at 0x7f7d68cbab10>

foo_package = '/tmp/pytest-of-travis/pytest-0/test_local_index0'

install_target = '/tmp/pytest-of-travis/pytest-0/test_local_index0'

    def test_local_index(self, foo_package, install_target):

        """

            The local index must be used when easy_install locates installed

            packages.

            """

        dist = Distribution()

        dist.script_name = 'setup.py'

        cmd = ei.easy_install(dist)

        cmd.install_dir = install_target

        cmd.args = ['foo']

        cmd.ensure_finalized()

        cmd.local_index.scan([foo_package])

>       res = cmd.easy_install('foo')

/home/travis/build/pypa/setuptools/setuptools/tests/test_easy_install.py:289: 

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

./setuptools/command/easy_install.py:633: in easy_install

    self.install_site_py()

./setuptools/command/easy_install.py:1276: in install_site_py

    source = resource_string("setuptools", "site-patch.py")

./pkg_resources/__init__.py:1214: in resource_string

    self, resource_name

./pkg_resources/__init__.py:1456: in get_resource_string

    return self._get(self._fn(self.module_path, resource_name))

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pkg_resources.DefaultProvider object at 0x7f7d68be0490>

path = './setuptools/site-patch.py'

    def _get(self, path):

>       with open(path, 'rb') as stream:

E       FileNotFoundError: [Errno 2] No such file or directory: './setuptools/site-patch.py'

./pkg_resources/__init__.py:1576: FileNotFoundError

I have no idea why it's failing.