FS#45665 - [python-matplotlib][python2-matplotlib] Please add __init__.py file in mpl_toolkits folder
Attached to Project:
Community Packages
Opened by Ng Oon-Ee (ngoonee) - Thursday, 16 July 2015, 08:33 GMT
Last edited by Eli Schwartz (eschwartz) - Tuesday, 23 October 2018, 22:39 GMT
Opened by Ng Oon-Ee (ngoonee) - Thursday, 16 July 2015, 08:33 GMT
Last edited by Eli Schwartz (eschwartz) - Tuesday, 23 October 2018, 22:39 GMT
|
Details
Description:
Currently, /usr/lib/python{2.7,3.4}/site-packages/mpl_toolkits does not contain __init__.py This is a setuptools oddity, and when I reported it to upstream[1] they replied that its beyond their control. However, the effect is that our python{,2}-matplotlib packages do not contain this file when a python setup.py install would. In my case, this means ipython and jedi-vim both cannot auto-complete anything within mpl_toolkits. I'm requesting the workaround of simply copying the file from the build directory, or in other words copying src/matplotlib-{pkgver}/build/lib.linux-x86_64-3./mpl_toolkits/__init__.py to pkg/usr/lib/python{2.7,3.4}/site-packages/mpl_toolkits/__init__.py I can confirm that manually placing that file from my own build in the appropriate location solves my auto-completion issues. [1] - https://github.com/matplotlib/matplotlib/issues/4712 |
This task depends upon
Closed by Eli Schwartz (eschwartz)
Tuesday, 23 October 2018, 22:39 GMT
Reason for closing: Won't fix
Additional comments about closing: It's a matter of technical correctness to not include the file, and should be considered a bug in any autocompleter engine that does not support PEP 420.
Tuesday, 23 October 2018, 22:39 GMT
Reason for closing: Won't fix
Additional comments about closing: It's a matter of technical correctness to not include the file, and should be considered a bug in any autocompleter engine that does not support PEP 420.
e.g.
https://github.com/ipython/ipython/issues/8875
https://github.com/davidhalter/jedi/issues/122
I've tested it and it completes successfully using vim and vim-jedi, it does *not* complete successfully using ipython however that is an ipython bug for not supporting namespace packages.