Folderless namespaced packages with setuptools

心不动则不痛 提交于 2019-12-12 05:16:34

问题


I have once seen a Python package with one flat src/ folder containing setup.py, but which still declare itself as namespace or namespace.foo package and you can import files from the package as from namespace.foo import x.

This was done with some setup.py option and tricks. However, I have unable to find the source or the package how this was done and I am now looking for examples for it.

来源:https://stackoverflow.com/questions/9587667/folderless-namespaced-packages-with-setuptools

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!