Future improvements to our Python rules

360 views
Skip to first unread message

Lukács T. Berki

unread,
Jul 26, 2018, 1:47:25 PM7/26/18
to bazel-si...@googlegroups.com, Jon Brandvein
Hello there,

Quick situation report: unfortunately, due to other prioritites, the Bazel team has not given much love to our Python rules recently. However, we know that they are important for you and for Bazel and it's going to get better soon: Jon Brandvein will be working on them from mid-August, starting with iterating on the design of these rules with this community.

Thanks for your continued collective patience and expect to see more activity in this space starting in August!

--
Lukács T. Berki | Software Engineer | lbe...@google.com | 

Google Germany GmbH | Erika-Mann-Str. 33  | 80636 München | Germany | Geschäftsführer: Paul Manicle, Halimah DeLaine Prado | Registergericht und -nummer: Hamburg, HRB 86891

Josh Burkart

unread,
Jul 26, 2018, 2:23:52 PM7/26/18
to lbe...@google.com, Bazel/Python Special Interest Group, bran...@google.com
Thanks for the update! FYI I've been using the custom Bazel Python rules from this repo ("rules_pyz") with a lot of success. Might be a useful resource.

--
You received this message because you are subscribed to the Google Groups "Bazel/Python Special Interest Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-sig-pyth...@googlegroups.com.
To post to this group, send email to bazel-si...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-sig-python/CAOu%2B0LXhRfqKTi12GULGbVSuDCcZJx0UZKV1mmxAQQFd-ByMow%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--
Josh Burkart, PhD
Scientist/engineer
ClimaCell, Inc.

CONFIDENTIALITY NOTICE: The information in this email may be confidential and/or privileged. This email is intended to be reviewed by only the individual or organization named above. If you are not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any review, dissemination or copying of this email and its attachments, if any, or the information contained herein is prohibited. If you have received this email in error, please immediately notify the sender by return email and delete this email from your system.

t...@spotify.com

unread,
Aug 5, 2018, 1:46:07 PM8/5/18
to Bazel/Python Special Interest Group
Thanks for the update indeed - that's fantastic to hear! We're currently looking into using Bazel for scientific Python projects at Spotify, so this is great news!

Best,
Thomas

Alex Thompson

unread,
Sep 21, 2018, 2:39:39 PM9/21/18
to Bazel/Python Special Interest Group
Hi Lukács,

Any more updates on this front? Is design or development underway, and if so, how can we keep on eye on the progress?

Thanks!
Alex

Jon Brandvein

unread,
Sep 21, 2018, 3:10:15 PM9/21/18
to aptb...@gmail.com, bazel-si...@googlegroups.com
Hi Alex,

We've begun improving the core Python rules, mainly with regard to Py2 vs 3 issues, but the changes aren't committed yet due to a blocker that I expect to be resolved next week. As a prerequisite, we also open sourced some unit tests for the rules.

The fixes I expect soon are:
- building a Py3-only py_library at the top-level without having to specify --force_python (#1446)
- Py3 targets should run with the system "python3" command by default (#4815)
- clearer documentation for the various flags/attributes that control what python mode you're in

After that, we'll put out a design doc for a py_toolchain rule (perhaps just a refinement of the existing py_runtime) to allow per-target selection of the python interpreter -- basically a concretization of the py_toolchain proposed in the Purple Boa doc. Stay tuned.

Pip integration (rules_python) and building extensions are also big concerns but we do not yet have precise plans for those.

As for keeping up with the progress: I've been updating relevant github issue threads, and you can watch this mailing list for upcoming docs.

--
You received this message because you are subscribed to the Google Groups "Bazel/Python Special Interest Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-sig-pyth...@googlegroups.com.
To post to this group, send email to bazel-si...@googlegroups.com.

Alex Thompson

unread,
Sep 21, 2018, 4:09:01 PM9/21/18
to Jon Brandvein, bazel-si...@googlegroups.com
Thanks so much for the update Jon. I'll keep an eye on the "rules > python" category on GitHub for progress. I appreciate the work you guys are doing!
--
Alex
Reply all
Reply to author
Forward
0 new messages