Create a conda version spec string.
Generally favors = unless the spec already contains an operator.
=
The package name.
The version spec, optionally prefixed with an operator.
A formatted pkg=spec or pkg<operator>spec string.
pkg=spec
pkg<operator>spec
makeSpec("python", "3.11"); // "python=3.11"makeSpec("conda", ">=23.1"); // "conda>=23.1"makeSpec("numpy", "1.24|1.25"); // "numpy1.24|1.25" Copy
makeSpec("python", "3.11"); // "python=3.11"makeSpec("conda", ">=23.1"); // "conda>=23.1"makeSpec("numpy", "1.24|1.25"); // "numpy1.24|1.25"
Create a conda version spec string.
Note
Generally favors
=unless the spec already contains an operator.