JohannesEbke/a4 — Issue #29: protobuf import abuse
Author: pwaller
Created: 2011-10-16 22:15:17+00:00
State: open
Labels: Architecture

I'm currently trying to put the `NTUP_PHOTON` protobuf I produced into its own `atlas/ntup_photon` directory under `a4root/proto` to make way for other formats.

Problem: The current architecture messes this up

Specifics: `proto/atlas/ntup_photon/Event.proto` imports `RootExtension.proto` which sits under `proto/`. This results in a `lib/python/site-packages/a4/proto/root/atlas/ntup_photon/Event_pb2.py` in the `${PREFIX}` which contains the statement `import RootExtension_pb2".

If you change the import statement to `import "root/RootExtension"` and move things around accordingly you still have problems. The only way out that I can see is to use the same structure in the `proto/` that you want to end up with, so should be `src/a4root/proto/a4/root/{RootExtension.proto,atlas/ntup_photon/Event.proto}` and `import "a4/root/RootExtension.proto"`. @JohannesEbke, do you agree?