def create_dirs(self):
        """create the directories necessary for namespace packaging"""
        directories = self.namespace_directories(self.depth)
        if not directories:
            return
        if not os.path.exists(directories[0]):
            for d in directories:
                os.mkdir(d)
                with open(os.path.join(d, '__init__.py'), 'w') as fp:
                    fp.write(
                        'import pkg_resources\n' 'pkg_resources.declare_namespace(__name__)\n'
                    )
create the directories necessary for namespace packaging
dynaconf/vendor/ruamel/yaml/setup.py