google-deepmind/sonnet

How to build/install from source with v2?

samuela opened this issue · 2 comments

It appears as though the v2 branch has removed docs/INSTALL.md, install.sh, BUILD and the :install bazel target. Here's the full diff between versions 1.33 and 2.0.0: v1.33...v2.0.0. What are the official steps to build 2.0.0 and later versions from source? Is there a convenient way to build them into a wheel?

Also, is the v2 or the master branch the main development branch?

Sonnet v2 is a pure python library (unlike Sonnet 1) so building into a whl is the standard Python stanza: python setup.py sdist bdist_wheel. No need to use bazel for building Sonnet 2.

The v2 branch is the latest, master contains Sonnet 1 and no further development effort is planned there. I have been meaning to rename master to v1 for a while, I will check with the other maintainers and see about doing that today.

I attempted packaging via bdist_wheel but for some reason the test suite was failing (via pytest). I don't remember the exact details. I'll have to give it another shot and paste the error here.