Skip to content

How to build/install from source with v2? #219

Open

Description

@samuela

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?

Activity

  1. tomhennigan commented on Sep 8, 2021

    @tomhennigan
    Collaborator

    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.

  2. samuela commented on Sep 8, 2021

    @samuela
    Author

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions