That was the first attempt but it will fail for conda environments due to the simple fact that the environment is not activated when the function is called. Putting it in a wrapper ensures the environment is active.
Another alternative I thought of yesterday would be to use the script directive. Then, the conda environment will be active, and the entire build command wrapped in a script (e.g. scripts/malt-build.py) with the following modification to the rule:
That was the first attempt but it will fail for conda environments due to the simple fact that the environment is not activated when the function is called. Putting it in a wrapper ensures the environment is active.
Another alternative I thought of yesterday would be to use the
script
directive. Then, the conda environment will be active, and the entire build command wrapped in a script (e.g.scripts/malt-build.py
) with the following modification to the rule: