[Potter, Tim (Cloud Services), 2015-04-21] > binary gives an import error since /usr/share/dwarf isn’t in the PYTHONPATH: > > # dwarf > Traceback (most recent call last): > File "/usr/bin/dwarf", line 32, in <module> > from dwarf import log # pylint: disable=W0611 > ImportError: No module named dwarf
binary and module name are the same so distutils decided to copy script to module dir: | running install_scripts | copying build/scripts-2.7/dwarf -> debian/dwarf/usr/share/dwarf/dwarf | copying build/scripts-2.7/dwarf-manage -> debian/dwarf/usr/share/dwarf mv debian/dwarf/usr/share/dwarf/dwarf debian/dwarf/usr/share/dwarf/run in your install override, update symlink in debian/links and it should work -- Piotr Ożarowski Debian GNU/Linux Developer www.ozarowski.pl www.griffith.cc www.debian.org GPG Fingerprint: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645 -- To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20150421090124.gp2...@sar0.p1otr.com