使用非 python 文件构建 Python 项目的最佳实践,例如DLL、.c、.cpp?
Best practices for structuring Python project with non python files e.g. DLL, .c, .cpp?
我想知道我应该把我的非python文件放在哪里(DLL、.c、.cpp ).目前我将它保存在我的包目的地下的“resources”文件夹中:
my_project/
docs\
my_pkg/
resources/
API.dll
__init__.py
module.py
tests\
test_module
.gitignore
README.md
MANIFEST.in
requirements.txt
setup.py
我想知道什么是 Pythonic 方式?
完美的地方,参见Python Packaging Guide。不要忘记将文件放入 setup.py 或 MANIFEST.in。
我想知道我应该把我的非python文件放在哪里(DLL、.c、.cpp ).目前我将它保存在我的包目的地下的“resources”文件夹中:
my_project/
docs\
my_pkg/
resources/
API.dll
__init__.py
module.py
tests\
test_module
.gitignore
README.md
MANIFEST.in
requirements.txt
setup.py
我想知道什么是 Pythonic 方式?
完美的地方,参见Python Packaging Guide。不要忘记将文件放入 setup.py 或 MANIFEST.in。