pat-jpnk
pat-jpnk
Here is a working example: https://github.com/pat-jpnk/bazel_pip_example In your code you need to call `if __name__ == "__main__"` - you are calling ` __main__ == "__main__"` on accident.
I have found that you need to use the [pip_compile_requirements]("https://rules-python.readthedocs.io/en/stable/api/pip.html#compile-pip-requirements") rule to create the _requirements_lock.txt_ file. If you do so, all the packages that a module depends on will be...
I can't test this at this very moment, but if the following documentation example is correct: https://github.com/bazelbuild/rules_python/blob/main/examples/pip_parse/MODULE.bazel It stands out to me that in your code the **use_extension** takes a...
I just experienced this bug as well. I moved a project written on from Ubuntu Linux 22.04 to a Windows 10 machine. I wanted to test if calling "bazel run...