小编Pau*_*aul的帖子

通过setuptools安装python模块时如何包含配置文件?

我编写了一个用于机器人应用程序的模块,该模块提供对机器人特定特征的访问,以及用于使用数据的 python 和 c++ 客户端。使用 setuptools 将 python 客户端捆绑到一个模块中。

(简化的)目录结构如下所示:

<root of git repo>
??? config
?   ??? global
?   ?   ??? <files common to all robots>
?   ?   ??? ...
?   ??? robot1
?   ?   ??? camera_calibrations
?   ?   ?   ??? cam1.yml
?   ?   ?   ??? cam2.yml
?   ?   ?   ??? cam3.yml
?   ?   ??? vehicle_params.yaml
?   ??? robot2
?   ?   ??? ...
?   ??? ...
??? cpp
?   ??? <c++ client>
??? Makefile
??? python
?   ??? <namespace> …
Run Code Online (Sandbox Code Playgroud)

python pip setuptools

5
推荐指数
0
解决办法
1655
查看次数

标签 统计

pip ×1

python ×1

setuptools ×1