Search code examples
anacondabazel

How to integrate conda based python project with bazel


I have a python project which uses anaconda as its Python distribution. What's the best way to convert it to bazel. I.e. how to do the following?:

  • Install conda from the build script
  • Install required libraries into this conda distribution
  • Add dependencies on these libraries

Solution

  • I used bazel repository rules for this: https://docs.bazel.build/versions/master/skylark/repository_rules.html