[Bug 1250877] Re: Python3 modules are not installed in the right path
Stefano Rivera
1250877 at bugs.launchpad.net
Mon Nov 17 12:39:59 UTC 2025
Sorry, but python3.3 is *ancient*. I'm going to mark this as incomplete,
especially as the mentioned debian bug is long closed.
** Changed in: python3-defaults (Ubuntu)
Status: Confirmed => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python3-defaults in Ubuntu.
https://bugs.launchpad.net/bugs/1250877
Title:
Python3 modules are not installed in the right path
Status in python3-defaults package in Ubuntu:
Incomplete
Bug description:
[Note: this might be a bug in autoconf rather than automake, I'm not
entirely sure]
On Ubuntu (and I think also on Debian), Python3 modules are installed
in /usr/lib/python3/dist-packages
However, that's different from the upstream path, which is
/usr/lib/python3.3/site-packages
Python3 modules building with the Autotools will get installed in the
upstream-preferred path, and as a result, Python3 won't find them.
Here is a way to reproduce it:
1. First, install libcangjie from Git:
git clone git://github.com/Cangjians/libcangjie
cd libcangjie
./autogen.sh --prefix=/usr && make && sudo make install
2. Now, install pycangjie:
git clone git://github.com/Cangjians/pycangjie
cd pycangjie
./autogen.sh --prefix=/usr && make && sudo make install
(you might need to install some dependencies, like libsqlite3-dev,
python3-de and cython)
Now, observe how the module was installed in /usr/lib/python3.3/site-
packages/cangjie, where Python3 won't find it.
This installation path is not hardcoded in the pycangjie build
process, it is **automatically discovered by the autotools**.
If Ubuntu (or is it Debian?) decides to change where Python3 modules
are installed, then shouldn't it also try to ensure that they actually
get installed there?
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3-defaults/+bug/1250877/+subscriptions
More information about the foundations-bugs
mailing list