soniaai / rules_poetry

Bazel rules that use Poetry for Python package management
MIT License
72 stars 22 forks source link

Support Python interpreter provided through the interpreter_path #3

Closed nlewo closed 4 years ago

nlewo commented 4 years ago

The Python interpreter can be either provided through a path (platform runtime), or through a label (in-build runtime).

For instance, the Python toolchain provided by rule_nixpkgs uses the interpreter_path. See https://github.com/tweag/rules_nixpkgs/blob/1807150bab083dbb58af726a725baf961af7dbaa/nixpkgs/nixpkgs.bzl#L412