Generate a Python virtual environment using the Python runtime provided by a LCG view, and then from a high level requirements.txt
file use pip-tools
to compile an environment given by the accompanying lock file.
$ bash create_cvmfs_venv.sh
Write the example.sh
so that it sets up the same Python from the LCG view and then loads
the same virtual environment. A key point is to make sure that the output equivalent of
export PYTHONPATH="$(readlink -f $(find venv -type d -iname site-packages)):${PYTHONPATH}"
is used. Also remember to make example.sh
executable with
$ chmod +x example.sh
so that HTCondor can treat it as a regular executable.
$ mkdir -p output error log # Ensure output directories for job
$ condor_submit example.sub
$ condor_q
If you're trying to debug a job or need a reminder on how to get more information on jobs with condor_q
check out the "Managing a Job" section of the HTCondor docs.