def create(name, packages=None, user=None):
packages = packages or '<STR_LIT>'<EOL>packages = packages.split('<STR_LIT:U+002C>')<EOL>packages.append('<STR_LIT>')<EOL>args = packages + ['<STR_LIT>', '<STR_LIT>']<EOL>cmd = _create_conda_cmd('<STR_LIT>', args=args, env=name, user=user)<EOL>ret = _execcmd(cmd, user=user, return0=True)<EOL>if ret['<STR_LIT>'] == <NUM_LIT:0>:<EOL><INDENT>ret['<STR_LIT:result>'] = True<EOL>ret['<STR_LIT>'] = '<STR_LIT>' % name<EOL><DEDENT>else:<EOL><INDENT>if ret['<STR_LIT>'].startswith('<STR_LIT>'):<EOL><INDENT>ret['<STR_LIT:result>'] = True<EOL>ret['<STR_LIT>'] = '<STR_LIT>' % name<EOL><DEDENT>else:<EOL><INDENT>ret['<STR_LIT:result>'] = False<EOL>ret['<STR_LIT:error>'] = salt.exceptions.CommandExecutionError(ret['<STR_LIT>'])<EOL><DEDENT><DEDENT>return ret<EOL>
Create a conda env