def _getPythonProvidesSysPath(self, path):
        """Generate an ordered list of python paths for the target package.

        This includes the current system path, plus any paths added by the new
        package in the destdir through .pth files or a newly built python.

        @return: (sysPath, pythonVersion)
        """
        pythonPath, bootstrapPython = self._getPython(self.macros, path)
        if not pythonPath:
            # Most likely bad interpreter path in a .py file
            return (None, None)
        if pythonPath in self.pythonSysPathMap:
            return self.pythonSysPathMap[pythonPath]
        destdir = self.macros.destdir
        libdir = self.macros.libdir
        pythonVersion = self._getPythonVersion(pythonPath, destdir, libdir)

        # Get default sys.path from python interpreter, either the one just
        # built (in the case of a python bootstrap) or from the system.
        systemPaths = set(self._getPythonSysPath(pythonPath, destdir, libdir,
            useDestDir=False))
        # Now add paths from the destdir's site-packages, typically due to
        # newly installed .pth files.
        systemPaths.update(self._getPythonSysPath(pythonPath, destdir, libdir,
            useDestDir=True))
        # Sort in descending order so that the longest path matches first.
        sysPath = sorted(self._stripDestDir(systemPaths, destdir), reverse=True)

        self.pythonSysPathMap[pythonPath] = (sysPath, pythonVersion)
        return self.pythonSysPathMap[pythonPath]