ansys / ansys-tools-protoc-helper

Utility for compiling .proto files to Python source
https://ansys.github.io/ansys-tools-protoc-helper/
MIT License
7 stars 0 forks source link

Pip install doesn't work from outside the project directory #27

Closed greschd closed 2 years ago

greschd commented 2 years ago

Trying to install a project using ansys-tools-protoc-helper by calling pip install from outside the project directory doesn't work.

Example calls:

Not working: pip install ../../<project_name>

Working: cd ../../<project_name>; pip install .

Note: I need to spend a bit more time to properly reproduce this, could also be due to temporary files still left in the project directory.

greschd commented 2 years ago

This is caused by .proto files being present in the build directory. By default, the target directory is at the top-level, which means there are duplicate definitions.

This is probably best addressed at the level of the API template, by switching to src/ layout.