Skip to content

Spack go version is old and messes up building gojsonnet for wire-cell-python #7

Description

@brettviren

This is a convoluted problem which did not happen on Debian 11 but occurs when setting things up again with Debian 12.

Spack with wire-cell-spack builds go 1.4 which gets used by pip install the wire-cell-python package in the resulting virtual env. Go is needed directly through gojsonet Python bindings and via moo.

The pip install fails due to error:

      running build_ext
      flag provided but not defined: -buildmode

To fix one can remove from the Spack view the very old go provided by Spack in order to pick up the newer version from the host OS:

rm local/bin/go local/bin/gofmt

A better solution is some mix of:

  • upgrade the go package in Spack and/or in wire-cell-spack
  • incorporate installing of wire-cell-python dependencies in wire-cell-spack

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions