From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hartmut Goebel Subject: Re: Should python-build-system packages have native-inputs? Date: Sat, 28 Apr 2018 13:25:11 +0200 Message-ID: <0e4db36b-cc7b-588b-1f37-bc5ce5bae2ab@crazy-compilers.com> References: <874ljv7rk0.fsf@gmail.com> <9766df40-5e91-577e-d2ed-195a1d8569fd@crazy-compilers.com> <87muxn63p9.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="spKjQ4iRPOhiwOjzjhS47FunrgJTBDrLj" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48788) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fCNyo-0002cr-3r for guix-devel@gnu.org; Sat, 28 Apr 2018 07:25:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fCNyk-0007VH-SS for guix-devel@gnu.org; Sat, 28 Apr 2018 07:25:26 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:49105) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fCNyk-0007Uh-HC for guix-devel@gnu.org; Sat, 28 Apr 2018 07:25:22 -0400 In-Reply-To: <87muxn63p9.fsf@gmail.com> 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: Chris Marusich , Fis Trivial Cc: guix-devel@gnu.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --spKjQ4iRPOhiwOjzjhS47FunrgJTBDrLj Content-Type: multipart/mixed; boundary="3AHg9OxRYPc9EdjRAcrTOaaMfv0qd8R3K"; protected-headers="v1" From: Hartmut Goebel To: Chris Marusich , Fis Trivial Cc: guix-devel@gnu.org Message-ID: <0e4db36b-cc7b-588b-1f37-bc5ce5bae2ab@crazy-compilers.com> Subject: Re: Should python-build-system packages have native-inputs? References: <874ljv7rk0.fsf@gmail.com> <9766df40-5e91-577e-d2ed-195a1d8569fd@crazy-compilers.com> <87muxn63p9.fsf@gmail.com> In-Reply-To: <87muxn63p9.fsf@gmail.com> --3AHg9OxRYPc9EdjRAcrTOaaMfv0qd8R3K Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Language: en-US Am 28.04.2018 um 12:11 schrieb Chris Marusich: I understand your concerns, and I understand why this is hard to get for a Pythonista. But this is exactly why we added this section to the manual= =2E > Because the python-build-system never cross-compiles,=20 This is an implementation detail which might might change. And if we remove all inputs now, we need to add again them later. This is a lot of work, I know since I've cleaned this up for all Python modules. IMHO it's not a good idea for drop this knowledge from the code. > If the > python-build-system actually did support cross-compilation, then this > might be a different story. Maybe this is going to change somewhen :-) We should aim to the top, not the status quo :-) > My understanding is that the concept of "native-inputs" for a package > only makes sense when that package uses a build system that can > cross-compile, This is my understanding, too. But the python-build-system might be able to cross-compile somewhen and then this information is essential. >> And for extension modules it would allow compiling on a faster >> environment (e.g. x86 vs. ARMv4). >> >> (I was not aware of python packages are not cross-compiled, thus I can= >> only guess the reason why this is not possible: Python distutils may n= ot >> be able to *cross*-compile extension modules. Maybe we could work on t= his.) > I am curious about extension modules. I understand they are tied > closely to the underlying architecture, but I have little experience > with them, so I'm not sure how they relate to cross compilation. Extension modules are simply modules or libraries=C2=A0 written in C/C++ = or other languages. Even modules written in Cython would be counted in here, since they are translated to C and then compiled into platform dependent code. > In any > case, it doesn't change the fact that today, the python-build-system > does not cross-compile. In any case, this is a current limitation only :-) --=20 Regards Hartmut Goebel | Hartmut Goebel | h.goebel@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible | --3AHg9OxRYPc9EdjRAcrTOaaMfv0qd8R3K-- --spKjQ4iRPOhiwOjzjhS47FunrgJTBDrLj Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE1K2LnBZ7dXxPCOh3e3UoEb93O2UFAlrkWh8ACgkQe3UoEb93 O2XdfxAAi4o7akQPUH+2QqUBAQG43vuC8ewss3gvG4yxuBCuT5MhSYUqJZbMR4ug KVaYziW4LW15f6wQPdAFQo3l8dBw56AR5Biyl0uCtytbRQsNvIuLl8rd7Dl7xJPg zPv0+Ag3v23km2vrtNP83+Ebs2pUTC/xxMHJJIh/Gffw/DZh5KYdWDrhlxyjHxDx 0a4vEVJiURMnp+k71lZhWOLOtjCytIi2gYryGzSB6PogbjxlTHBSnNAq/mji4gTV ZQiTLVL3xFI3ymkWLX5QKOetf56Gtq4G8dSiD/6KtTUgOpO7YqRcC6ZNrbvP7dLr o+n790l5dJUCwUpsxxP+OJVa9mu7t6mB3HLnXjKrHY+jcJ1Fb06yykbd9Fu2G2IT c20XUpB3D/pN0tWKiG3EGGi9DKI9SP6XZ6gE850Y95Bm6A9kGYX85sah26zw73sl e/ntWNGytvlp5vKPLc3me9VgRYLqufvDjbp4geLg78vwotkO9GLjmK7HAF77nghC xLrKH0T1Sf3pyvSPXUkaOr8e12pYrzLMJxCPL+fZbqXzbdFd0iwUbN459OKr2wgU 4siFnqXG+qsbmmd3xRjrGuz4/4JJDo6CmcFFvgVDMf/rm+ZySASMgVHGyJp50h32 tSH4rqsNjfzh/UBZASCEFhM2+j/ZHIwmExp+TV4jdXCacf3qjFc= =lv9/ -----END PGP SIGNATURE----- --spKjQ4iRPOhiwOjzjhS47FunrgJTBDrLj--