You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Breaking this out as a separate issue from #361 (where I first mentioned this).
When trying to build the py_gapic_library Bazel rule, the Fetching @gapic_generator_python_pip_deps step takes a little >5 mins from a clean build every time.
Reproducible by doing bazel clean --expunge before building.
The text was updated successfully, but these errors were encountered:
Shoud fix#400 and #390, plus a bunch of other not-yet-opened issues.
This includes:
1) Fix long initial load time (5+ min). This was caused by python_rules buildling `grpcio` dependency from sources in one core (which was super slow). Switched to using bazel-native `"@com_github_grpc_grpc//src/python/grpcio/grpc:grpcio"` target instead, which is not only much faster, but is also already used in googleapis, so there is no additional cost for reusing it in microgenerator rules.
2) Properly handle `pandoc` dependency (platform-sepcific version of pandoc is properly pulled by bazel itself using toolchains).
3) Add simplistic version of the `py_gapic_assembly_pkg` rule, to make output of microgenerator compatible with `GAPICBazel` class in synthtool.
4) Add `plugin_args` argument for python_gapic_library rule to pass custom argumetns to the plugin (similar to PHP rules).
5) Add compatibility with `python3.6` runtime (otherwise `python3.7` is minimum because of dependency on `dataclasses` module). Python 3.6 compatibility can be enabled by adding `--define=gapic_gen_python=3.6` command line argument to `bazel build` command.
6) Add support for Python runtimes installed with `pyenv`. To tell bazel using Python3 installed via pyenv add `--extra_toolchains=@gapic_generator_python//:pyenv3_toolchain` argument to `bazel build` command.
Breaking this out as a separate issue from #361 (where I first mentioned this).
When trying to build the
py_gapic_library
Bazel rule, theFetching @gapic_generator_python_pip_deps
step takes a little >5 mins from a clean build every time.Reproducible by doing
bazel clean --expunge
before building.The text was updated successfully, but these errors were encountered: