I've wanted zsh completions for pypi ecosystem for a long time, so I want to thank you for getting the ball rolling on this. My strong feeling, however, is that you shouldn't force the installation anywhere superuser privileges are required. Namely, find_completion_script_dir should prefer a user directory in fpath.
Completions for Python itself: _python are typically vendor-distributed, and therefore in /usr/share/zsh/functions/Completion/Unix. At least it's this way in Ubuntu Linux. For now I just trick it by writing a dummy file _python elsewhere.
I've wanted
zshcompletions for pypi ecosystem for a long time, so I want to thank you for getting the ball rolling on this. My strong feeling, however, is that you shouldn't force the installation anywhere superuser privileges are required. Namely,find_completion_script_dirshould prefer a user directory infpath.Completions for Python itself:
_pythonare typically vendor-distributed, and therefore in/usr/share/zsh/functions/Completion/Unix. At least it's this way in Ubuntu Linux. For now I just trick it by writing a dummy file_pythonelsewhere.