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 11:42:04 +0100 Message-ID: <20161031114204.2f27a8da@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> 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]:40587) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c1A60-0001LA-2L for guix-devel@gnu.org; Mon, 31 Oct 2016 06:45:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c1A5w-00070Z-SH for guix-devel@gnu.org; Mon, 31 Oct 2016 06:45:40 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:42134) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c1A5w-0006zA-Mq for guix-devel@gnu.org; Mon, 31 Oct 2016 06:45:36 -0400 In-Reply-To: <20161030001320.GA15871@jasmine> 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, wxPython bundles wxwidgets. That's why we cd to "wxPython/wxPython" in order to avoid building it. So wxPython as we build it requires wxwidgets as input. But wxwidgets has multiple backends it supports, among them gtk. It should work to just leave off the gtk dependency on wxPython - since wxPython itself shouldn't require gtk. The intention is that wxwidgets provides a backend-independent interface. I think the same should be true about wxPython. I'll check it some more. wxPython seems to use SWIG in order to generate Python bindings to the C++ classes of wxwidgets. > I checked the references of the built package like this: > > $ guix gc --references $(./pre-inst-env guix build python2-wxpython) > /gnu/store/1xfc2pwr7qfjib9kfy3n2hjq56z7jyjx-python-2.7.11 > /gnu/store/6njycb0nzbczqbzvcyn1vw5sg7xsaanr-python2-setuptools-18.3.1 > /gnu/store/9nifwk709wajpyfwa0jzaa3p6mf10vxs-gcc-4.9.3-lib > /gnu/store/a5xcl27fflh6ppysf5wrsfnn3ly2gyhy-python2-wxpython-3.0.2.0 > /gnu/store/fdlind5y49q37m1g1wsvx840q2scrp6x-wxwidgets-gtk2-3.0.2 > /gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23 > /gnu/store/ykzwykkvr2c80rw4l1qh3mvfdkl7jibi-bash-4.3.42 > > assuming that wxPython needs these packages at run-time, I think it doesn't. It's easy to test it in a container which provides wxpython and python by writing a small test program in it.