def get_package_data(package):
    walk = [(dirpath.replace(package + os.sep, '', 1), filenames)
            for dirpath, dirnames, filenames in os.walk(package)
            if not os.path.exists(os.path.join(dirpath, '__init__.py'))]

    filepaths = []
    for base, filenames in walk:
        filepaths.extend([os.path.join(base, filename)
                          for filename in filenames])
    return {package: filepaths}
Is the page the last page?
dataset/ETHPy150Open djangonauts/django-hstore/setup.py/get_package_data--crossover with--dataset/ETHPy150Open enthought/pyface/pyface/wizard/chained_wizard_controller.py/ChainedWizardController.is_last_page