Commit 264ec2dc authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

Merge branch 'bf/package-without-version' into 'master'

BF: Accept package without version

See merge request fsl/conda/manifest-rules!36
parents a2388f22 8795402e
#!/usr/bin/env python
__version__ = '0.6.3'
__version__ = '0.6.4'
......@@ -43,17 +43,19 @@ def preprocess_environment(envfile, condadir, regen_envfile=False):
for i, pkg in enumerate(packages):
# package specs are of the form
# <package>
# or
# <package> <version>
# or
# <package> <version> <variant>
#
# and are transformed into the form
# <package>
# or
# <package>=<version>
# or
# <package>=<version>=<variant>
pkg, ver = pkg.split(maxsplit=1)
ver = ver.replace(' ', '=')
packages[i] = f'{pkg}={ver}'
packages[i] = '='.join(pkg.split())
return packages
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment