commit | 48eee8b4b447a2ad11df28dd81a2ccb65562b5f5 | [log] [tgz] |
---|---|---|
author | ThomasCJY <thomascjy93@gmail.com> | Wed Apr 21 17:55:04 2021 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Wed Apr 21 17:56:15 2021 -0700 |
tree | 889822c734de4242902ca93b69546717ae4ebbcc | |
parent | 4c59a401d5cd053907be8dba3ff9c28483581688 [diff] |
[Bazel] Fix mobile-install for python2 **Background** Fix issue introduced by https://github.com/bazelbuild/bazel/commit/1049fe89f12cfcae00902fbae6f6a5f1bc0b3a33 It turns out the queue module name is inconsistent across different python versions. We found that: * On some macos system: - python2 contains both queue and Queue module. All python2 contains Queue module - python3 only contains queue module * On some Linux system - python2 contains only Queue module. - python3 only contains queue module Therefore, some developers are seeing `ImportError: No module named queue` errors locally on linux machine after using mobile-install. **Change** Import correct Queue module instead **Test** Local test pass Closes #12540. PiperOrigin-RevId: 369773133
{Fast, Correct} - Choose two
Build and test software of any size, quickly and reliably.
Speed up your builds and tests: Bazel rebuilds only what is necessary. With advanced local and distributed caching, optimized dependency analysis and parallel execution, you get fast and incremental builds.
One tool, multiple languages: Build and test Java, C++, Android, iOS, Go, and a wide variety of other language platforms. Bazel runs on Windows, macOS, and Linux.
Scalable: Bazel helps you scale your organization, codebase, and continuous integration solution. It handles codebases of any size, in multiple repositories or a huge monorepo.
Extensible to your needs: Easily add support for new languages and platforms with Bazel's familiar extension language. Share and re-use language rules written by the growing Bazel community.
Follow our tutorials:
See CONTRIBUTING.md