Re: dh_python2 namespace issue?
> so we tried in a clean chroot, a simple
>
> import backports.functools_lru_cache
>
> which end-up with
>
> ~# python -c "import backports.functools_lru_cache; print backports.functools_lru_cache"
> Traceback (most recent call last):
> File "<string>", line 1, in <module>
> ImportError: No module named backports.functools_lru_cache
>
> If we add an __init__.py file under
>
> (unstable-amd64-sbuild)root@diffabs6:/usr/lib/python2.7/dist-packages/backports# touch __init__.py
I cannot reproduce it:
| (unstable-amd64-sbuild)root@piotro:/home/piotr# apt install python-backports.functools-lru-cache
| Reading package lists... Done
| Building dependency tree
| Reading state information... Done
| The following additional packages will be installed:
| libexpat1 libpython-stdlib libpython2-stdlib libpython2.7-minimal libpython2.7-stdlib libssl1.1 mime-support python python-minimal python2 python2-minimal python2.7 python2.7-minimal
| Suggested packages:
| python-doc python-tk python2-doc python2.7-doc binfmt-support
| The following NEW packages will be installed:
| libexpat1 libpython-stdlib libpython2-stdlib libpython2.7-minimal libpython2.7-stdlib libssl1.1 mime-support python python-backports.functools-lru-cache python-minimal python2 python2-minimal python2.7 python2.7-minimal
| 0 upgraded, 14 newly installed, 0 to remove and 0 not upgraded.
[...]
| (unstable-amd64-sbuild)root@piotro:/home/piotr# python -c "import backports.functools_lru_cache; print backports.functools_lru_cache"
| <module 'backports.functools_lru_cache' from '/usr/lib/python2.7/dist-packages/backports/functools_lru_cache.pyc'>
anyway, command that should create this __init__.py is:
`pycompile -p python-backports.functools-lru-cache` and
python-backports.functools-lru-cache's postinst invokes it correctly.
--
GPG: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645
Reply to: