There's no external configuration and no need for pyenv. Write your script, run it with calibre-debug -e. If your script requires python packages that are not bundles with calibre, simply add the path to them at the top of the script with
sys.path.append('/path/to/wherever your python package is')
|