Fix conda antismash path

This commit is contained in:
jasmezz 2022-05-02 14:40:35 +02:00
parent 5cd517e759
commit 0fc352188b

View file

@ -35,12 +35,19 @@ process ANTISMASH_ANTISMASHLITEDOWNLOADDATABASES {
script: script:
def args = task.ext.args ?: '' def args = task.ext.args ?: ''
conda = params.enable_conda
""" """
download-antismash-databases \\ download-antismash-databases \\
--database-dir antismash_db \\ --database-dir antismash_db \\
$args $args
cp -r /usr/local/lib/python3.8/site-packages/antismash antismash_dir if [[ $conda = false ]]; \
then \
cp -r /usr/local/lib/python3.8/site-packages/antismash antismash_dir; \
else \
antismash_path=\$(python -c 'import antismash;print(antismash.__file__.split("__")[0])') \
cp -r \$antismash_path antismash_dir; \
fi
cat <<-END_VERSIONS > versions.yml cat <<-END_VERSIONS > versions.yml
"${task.process}": "${task.process}":