

rule conda:
    """Export list of packages installed in the current conda env

    - Output: requirements.txt


    """
    input:
    output: "requirements.txt"
    run:
        from easydev import shellcmd
        try:
            res = shellcmd("conda list --export > %s" % output[0])
        except: #conda not installed ?
            with open(output[0], "w") as fh:
                fh.write("conda was not found on your system.")

