Do not fail when gen_protos cannot be imported#3279
Do not fail when gen_protos cannot be imported#3279aaltay wants to merge 1 commit intoapache:masterfrom
Conversation
|
When would we expect this to happen? |
|
Build finished. |
|
It happens, if the sdk is packaged without the egg_info. In that case pip install, triggers |
|
How about in that case wrapping the commands with classes that raise an error? This way we never silently fail to generate the protos when we need them. |
|
Alternatively, move the import into the run method. |
|
Would not it be the same problem, if we move the import into the run method? Then it will fail when run is called. |
|
But in that case it would only fail for the commands that require the
generated protos. egg_info would be just fine.
…On Fri, Jun 2, 2017 at 10:39 AM, Ahmet Altay ***@***.***> wrote:
Would not it be the same problem, if we move the import into the run
method? Then it will fail when run is called.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3279 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAdqgZXGjMrB3vmV-7rJtddE7_3udcT1ks5sAEjOgaJpZM4NtXob>
.
|
|
@robertwb Maybe I am missing something, but moving the import into the run method fails the same way. Because egg_info, triggers running of build_py. (That was the reason for original failure, egg_info did indeed caused a call to generate_protos_first and that returns a wrapped cmd.) |
|
Ah, I wasn't aware that egg_info called build_py. LGTM. |
|
Thank you, merging. |
R: @robertwb