Package: python3
Version: 3.4.2-2
Severity: normal

Dear Maintainer,

Problem:

    The automake `AM_PATH_PYTHON` will install python3 files to incorrect
    folder `/usr/lib/python3.4/site-packages` which cause installed python3
    module unusable.

Root cause:

    automake `/usr/share/aclocal-1.14/python.m4` use this command for python3 
    folder:

        sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})


Reproduce steps:

     python3 -c "import sysconfig; 
                 print(sysconfig.get_path('purelib', vars={'platbase':'/usr'}))"

Results:

    /usr/lib/python3.4/site-packages

Expected result:

    /usr/lib/python3.4/dist-packages
     

Extra info:

    Also tested on debian testing(stretch/sid) with python3.5.2-6.
    Got the same failure.

-- System Information:
Debian Release: 8.6
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages python3 depends on:
ii  dh-python          1.20141111-2
ii  libpython3-stdlib  3.4.2-2
ii  python3-minimal    3.4.2-2
ii  python3.4          3.4.2-1

python3 recommends no packages.

Versions of packages python3 suggests:
pn  python3-doc   <none>
pn  python3-tk    <none>
pn  python3-venv  <none>

-- no debconf information

Reply via email to