What we are doing is putting a requirements.txt with the content  -e .  in the top level of our repos and set the clearml config parameter  agent/package_manager/force_repo_requirements_txt  to  true .
I've tried to run something like  clearml-task ... --docker_bash_setup_script "cd $(echo /root/.clearml/venvs-builds/${PYTHON_VERSION%.*}/task_repository/...) && pip install ."  but it not working because the repo is fetching after docker_bash_setup_script, so I need to run this command later