Added support to honor python imports rules for pex_binaries.
https://github.com/bazelbuild/bazel/pull/2791 should provide the imports information to skylark and this review uses that information (provided in skylark) to build pex_binaries that honor import.
I could not find a easy way to add this info for pex binary and other pex artifcats. If you could provide some tips, I can get it up and running
Awesome, thank you for the pull request! I'm not sure I understand what you mean by "add this info for pex binary and other pex artifacts" - can you elaborate?
This current implementation only supports pex_binary. Does not support imports for pex_library, pex_test, pex_pytest. Perhaps a pointer can definitely help me add that support.
Sorry for the delay - I haven't forgotten about this, but I haven't had time to return to it just yet.
I guess we're still waiting for bazelbuild/bazel#2791 to get merged...
This has the same motivation as #42 .