[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dh_python2 extension rename breaking module loading

Thanks Matthias, removing the 'module' infix fixed the problem for me.

       mv {destdir}{install_dir}/khmer/_khmermodule.so \

On Thu Feb 12 2015 at 10:55:16 AM Matthias Klose <doko@debian.org> wrote:
On 02/11/2015 04:04 PM, Michael Crusoe wrote:
> Hello,
> I'm working on the packaging of the khmer project[0] with the debian-med
> team[1] and we've run into an odd problem: dh_python2 renames the Python
> extension shared library from `_khmermodule.so` to a version with a
> mutliarch triplet: `_khmermodule.x86_64-linux-gnu.so`. This breaks module
> loading: "ImportError: No module named _khmer".

The interpreter doesn't look up the old "module" name with the multiarch suffix.
Best thing would be to rename it manually (removing the "module" substring.  Of
course dh_python2 could do that as well.

Reply to: