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

Re: location of arch-dependent python module



> Most Python packages appear to put .so files in a different location:
> 
> $ apt-file search x86_64-linux-gnu | grep python | grep .so | grep
> packages | grep ^python3- | head -n1
> python3-acora: /usr/lib/python3/dist-packages/acora/_acora.

Yeah, I should have done my homework. What I missed was that if you use
a proper Python SO ABI extension for the module, so call it 

   modulename.cpython-38-x86_64-linux-gnu.so

then Python *will* pick it up on 'import modulename'. I had previously
tried 

   modulename.x86_64-linux-gnu.so

or something along those lines, and that does not work. I wasn't aware
of PEP 3149.

Thanks to both, it's solved now.

Cheers,
Kasper


Reply to: