From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: Re: Packaging LyX Date: Mon, 25 Dec 2017 13:41:37 +0000 Message-ID: <20171225134137.mfzapdewwpbbdf33@abyayala> References: <20171222184231.an2qywtr4ilmcqb5@abyayala> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="icho4rtky4lkgqj2" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49274) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eTT0p-0004Yx-BN for guix-devel@gnu.org; Mon, 25 Dec 2017 08:41:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eTT0m-0001rs-5u for guix-devel@gnu.org; Mon, 25 Dec 2017 08:41:51 -0500 Received: from aibo.runbox.com ([91.220.196.211]:60014) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eTT0l-0001oi-VT for guix-devel@gnu.org; Mon, 25 Dec 2017 08:41:48 -0500 Content-Disposition: inline In-Reply-To: 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: Gammel Holte Cc: guix-devel@gnu.org --icho4rtky4lkgqj2 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Gammel Holte transcribed 2.0K bytes: > On Fri, Dec 22, 2017 at 7:42 PM, ng0 wrote: >=20 > Thanks for your comments. I will address those before I circulate a patch. >=20 > > Is this python-2 only? If not, could you explain why you picked 2 and n= ot > 3 > > (2 is on its way out in 20 months). >=20 > LyX is sadly not ready for Python 3 yet. It will be soon, but there are > still > tickets open to support it: https://www.lyx.org/trac/ticket/9006 >=20 > Furthermore, I've tested LyX with Python 3 and it breaks. Okay, no problem. > Any hints on how to wrap the LyX package output so that it binds to the > Python input, instead of looking for it at runtime, like the Nix package > does? >=20 > https://github.com/NixOS/nixpkgs/blob/86da6d441f7a248b02d545ac1b2c90ef27f= 42d0b/pkgs/applications/misc/lyx/default.nix It depends. I have no time to look at the code (to see where python is required, how much of it (modules etc)), but we have multiple options, including: 1. Wrap the program. One of many examples: https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/gnuzilla.sc= m#n759 2. patch calls of 'python' to the gnu-store python executable. I can see th= is failing if python modules are required to be present and not just python. 3. Search for 'wrap' in the source checkout of Guix. You will find commits = like 0498d24866c4955faee95a4fc19ff6817e5483d2=20 (https://git.savannah.gnu.org/cgit/guix.git/commit/gnu/packages?id=3D0498= d24866c4955faee95a4fc19ff6817e5483d2) --=20 GnuPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588 GnuPG: https://c.n0.is/ng0_pubkeys/tree/keys WWW: https://n0.is --icho4rtky4lkgqj2 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEqIyK3RKYKNfqwC5S4i+bv+40hYgFAlpBABEACgkQ4i+bv+40 hYg4iw//a8K81Pap/EJsKYiEE+unQFlCJ2mPsAof0EmKGR5+CNWhOBzZQd9NADdC PuMDqwe8RLxAFL5VzUQ5QBVHOBC9uYwbNUA6NYBPXU0F89Ij5wOO9XEfwI3oWllJ qcCfeDiLDdyLqNkrP/NjrKasOal24b+oufE8MnESbEspBIEX0WQFADdhUigpkArx 8PbaLpEVPoMMcAoG0aOFyz7QAMP6LcsKoXu3MCKm4MB7pj5Q2quqWPjP/zi7WoyO JpRLcoc/Pg4BsPSgiJqHToHyID8l2UlzqZZ15RVwBT+8ZGWksFyQoxpZeT2jt8sZ vNJ3JXzWU7063q7M3kL1w9vGXewG0pMKpUsEYlPdwZVvtkhuMF7W2eEXh/EfboZK VrtDbCW0jUPi19cn3NTEGVGTl7HTlA/YLyqtp2ZQq8Aa25E9OkQh5iH0QlE7Ch+q tKY6xkhBI1dSLCbJz+u3ES5dLjL/eEWa81fPywapj7tP9k4G7k492IFTCFwTsXg9 aBs5ppRaR6AIYdzR0DGa36dmgJc8ZWnZMSjIrljJZ2Ni9AKUiI3c3QhdaHc62tAo C5DwfvOyhsSPdt+u6y2Dis4VCSr4w4rYnqtoRayirjCA83UkqcfrpSe2X9T7ESec dTnCPrMP/tHl9XTBzMgERwMek8RWf//7W/Zib2slEOpdbbCySX8= =KfRt -----END PGP SIGNATURE----- --icho4rtky4lkgqj2--