From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: Re: [PATCH v2 3/3] gnu: Add python2-wxpython. Date: Mon, 31 Oct 2016 16:38:34 +0100 Message-ID: <20161031163834.1c234b8e@scratchpost.org> References: <20161025124841.GA887@jasmine> <20161025160907.30181-1-theodoros.for@openmailbox.org> <20161025160907.30181-4-theodoros.for@openmailbox.org> <20161025163524.GB3404@jasmine> <87oa28tkq4.fsf@openmailbox.org> <20161030001320.GA15871@jasmine> <20161031114204.2f27a8da@scratchpost.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53433) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c1Efe-0003yx-D4 for guix-devel@gnu.org; Mon, 31 Oct 2016 11:38:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c1EfZ-0004pA-FO for guix-devel@gnu.org; Mon, 31 Oct 2016 11:38:46 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:60072) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c1EfZ-0004ou-8w for guix-devel@gnu.org; Mon, 31 Oct 2016 11:38:41 -0400 In-Reply-To: <20161031114204.2f27a8da@scratchpost.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" To: Leo Famulari Cc: guix-devel Hi, because of wxPython/src/helpers.cpp directly accessing a Gtk (gdk) structure (in macro GetXWindow) wxpython also requires gtk as regular input. I've tested it in $ guix environment --pure --ad-hoc python2-wxpython python-2 -- python using: import wxversion wxversion.select("3.0") import wx, wx.html from wx import glcanvas import wx.lib.fancytext import sys app = wx.App(redirect=True) # Error messages go to popup window top = wx.Frame(None) box = wx.BoxSizer(wx.VERTICAL) top.SetSizer(box) #panel = wx.Panel(top) canvas = glcanvas.GLCanvas(top) box.Add(canvas) canvas.Show() top.Show() app.MainLoop() app = wx.App(redirect=True) top = wx.Frame(None, title="Hello World", size=(300,200)) top.Show() app.MainLoop() #from wx import glcanvas #from OpenGL.GL import * #frame = GLFrame(None, -1, 'GL Window') #frame.Show() #app.MainLoop() #app.Destroy() The wxpython inputs I used were: (native-inputs `(("mesa" ,mesa) ; for glcanvas ("pkg-config" ,pkg-config) ("python2-setuptools" ,python2-setuptools))) (inputs `(("gtk+" ,gtk+-2) ; for wxPython/src/helpers.cpp ("wxwidgets" ,wxwidgets-gtk2))) If we even built the X11 backend of wxwidgets, we would require an input "libx11" - otherwise not. While wxpython glcanvas isn't very useful without mesa, it doesn't really require it. As you can see above it can still be imported without mesa. Therefore, I think the above is the final version of the inputs we should use for wxpython.