setup-miniconda
    Preparing search index...

    Function makeSpec

    • Create a conda version spec string.

      Generally favors = unless the spec already contains an operator.

      Parameters

      • pkg: string

        The package name.

      • spec: string

        The version spec, optionally prefixed with an operator.

      Returns string

      A formatted pkg=spec or pkg<operator>spec string.

      makeSpec("python", "3.11");       // "python=3.11"
      makeSpec("conda", ">=23.1"); // "conda>=23.1"
      makeSpec("numpy", "1.24|1.25"); // "numpy1.24|1.25"