It goes both ways; plenty of python- libs install binaries as well (eg. python-docutils installs a bunch of rst2* binaries). My python-bna <https://aur.archlinux.org/packages/python-bna/> battle net authenticator library installs a command line authenticator as well. But packages like youtube-dl or namcap don't have provide an "official" api; they just happen to be python apps that import themselves. Then again, python-pip's main purpose is the "pip" binary. So in that way, I guess arch is inconsistent. And python-pip / youtube-dl operate the same way, by importing and loading themselves: [3:35:37] adys@azura ~ % cat /usr/bin/pip #!/usr/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'pip==1.4.1','console_scripts','pip' __requires__ = 'pip==1.4.1' import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.exit( load_entry_point('pip==1.4.1', 'console_scripts', 'pip')() ) [3:36:44] adys@azura ~ % cat /usr/bin/youtube-dl #!/usr/bin/python import youtube_dl if __name__ == '__main__': youtube_dl.main() J. Leclanche On Mon, Sep 2, 2013 at 3:17 AM, Gabriel Ribeiro da Cruz Peixoto <gabrielrcp@gmail.com> wrote:
I don't think spiting the application from it's library is a official policy, or at least it is not followed by all packagers. On my system I found many packages that don't have a python-* name and install files on site-packages:
$ pacman -Qo /usr/lib/python3.3/site-packages/ | cut -d ' ' -f 4 | grep -v '^python-' | xargs pacman -Sp --print-format "%r/%n" | sort community/nfoview community/reflector community/youtube-dl core/systemd extra/gedit extra/namcap extra/pyalpm extra/python extra/vde2 extra/xcb-proto
There are some obvious false positives on this list and I did not check every other one, but I know that namcap and youtube-dl provide a python module along with the main script.
[]'s Gabriel