From mboxrd@z Thu Jan 1 00:00:00 1970 From: Federico Beffa Subject: Re: python-matplotlib: should it propagate numpy? Date: Mon, 7 Dec 2015 08:26:05 +0100 Message-ID: References: <87fuzfushy.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40143) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5qBT-0005q9-O2 for guix-devel@gnu.org; Mon, 07 Dec 2015 02:26:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a5qBS-0001Dj-Js for guix-devel@gnu.org; Mon, 07 Dec 2015 02:26:07 -0500 In-Reply-To: <87fuzfushy.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Cc: Guix-devel On Sun, Dec 6, 2015 at 11:22 PM, Ludovic Court=C3=A8s wrote: > Federico Beffa skribis: > >> Ricardo Wurmus writes: >> >>> Hi Guix, >>> >>> with a profile containing python-2.7.10 and python2-matplotlib I did >>> this: >>> >>> ~~~~~~~~~~~~~~~~~~~~~~~~ >>> [rwurmus@guix-builder:~] $ export >>> GI_TYPELIB_PATH=3D"$HOME/.guix-profile/lib/girepository-1.0" >>> [rwurmus@guix-builder:~] $ export >>> PYTHONPATH=3D$HOME/.guix-profile/lib/python2.7/site-packages >>> [rwurmus@guix-builder:~] $ python >>> Python 2.7.10 (default, Oct 9 2015, 22:48:33) >>> [GCC 4.9.3] on linux2 >>> Type "help", "copyright", "credits" or "license" for more information. >>>>>> import matplotlib.pyplot as plt >>> Traceback (most recent call last): >>> File "", line 1, in >>> File "/home/rwurmus/.guix-profile/lib/python2.7/site-packages/matplot= lib-1.4.2-py2.7-linux-x86_64.egg/matplotlib/__init__.py", line 180, in >>> from matplotlib.cbook import is_string_like >>> File "/home/rwurmus/.guix-profile/lib/python2.7/site-packages/matplot= lib-1.4.2-py2.7-linux-x86_64.egg/matplotlib/cbook.py", line 33, in >>> import numpy as np >>> ImportError: No module named numpy >>>>>> >>> ~~~~~~~~~~~~~~~~~~~~~~~~ >> >> Yeah, we should propagate numpy really. > > So, what=E2=80=99s the status of this discussion? To propagate or not to > propagate? :-) I just tried out using matplotlib without numpy and it actually works: -------------------------------------------------- $ ipython Python 3.4.3 (default, Jan 1 1970, 00:00:01) Type "copyright", "credits" or "license" for more information. IPython 3.2.1 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object', use 'object??' for extra details. In [1]: import matplotlib.pyplot as plt In [2]: t =3D range(5) In [3]: plt.plot(t, t) Out[3]: [] In [4]: plt.show() -------------------------------------------------- Therefore, despite numpy being the standard data crunching base format, I don't think we need to propagate it. Regards, Fede