I have a couple of packages in PyPI , and I would like to enable autocomplete functions with both of them. How could you verify that Bash auto-complete should be installed at all (check /etc/bash_completionmaybe?), And how would you install it with setup.py (preferably with setuptools)?
/etc/bash_completion
If you need OS level packages (i.e. bash-completion), you should distribute your library as an OS level package. That is, in .deb, .rpmetc. Some tips here:
bash-completion
.deb
.rpm
, setuptools script Python. bash-completion, , .
setuptools
data_files:
data_files
from setuptools import setup setup( ... data_files=[ ('/etc/bash_completion.d/', ['extra/some_completion_script']), ] )
Source: https://habr.com/ru/post/1751972/More articles:Function reuse - language-agnostichttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1751968/how-can-i-move-some-lines-to-left-or-right-in-a-simple-way-not-n-or-n&usg=ALkJrhi1ouNl0PF0-lXJMxfKKMx_9Bl4kwremoval of unwanted xml nodes - xmlComputational Costs - c ++How to get selected text code in contentEditable div in IE? - javascriptHow do make m2eclipse (Maven) point to the path "persistence.xml"? - maven-2Sql selects null and nonzero values ββin a WHERE clause - sqlHow to get entries on pages in Android - androidCompile EXPAT for statically linked .a on Windows - cDoes this violate the longest principle? - regexAll Articles