Re: Question about private modules in /usr/share
[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
Reply to: