From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#20765: Python .egg files must not be compressed Date: Tue, 13 Oct 2015 16:10:14 +0200 Message-ID: <87612aq2pl.fsf@gnu.org> References: 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]:48316) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zm0IE-0000sl-Mo for bug-guix@gnu.org; Tue, 13 Oct 2015 10:11:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zm0IA-000437-Qh for bug-guix@gnu.org; Tue, 13 Oct 2015 10:11:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:49868) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zm0IA-00042r-ON for bug-guix@gnu.org; Tue, 13 Oct 2015 10:11:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: (Ricardo Wurmus's message of "Tue, 13 Oct 2015 15:38:38 +0200") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Ricardo Wurmus Cc: 20765@debbugs.gnu.org Ricardo Wurmus skribis: > I stumbled upon a similar problem when building other Python packages. > For =E2=80=98python-patsy=E2=80=99, for example, I found that an egg arch= ive is produced > no matter what I put in =E2=80=98setup.cfg=E2=80=99. As far as I can tel= l, =E2=80=9Czip_ok=E2=80=9D > defaults to =E2=80=9C0=E2=80=9D in recent versions of setuptools, so I do= n=E2=80=99t think the > fix you used on =E2=80=98python-pillow=E2=80=99 would have much effect in= general. OK. > I could only coerce the build system to install plain files by adding a > build phase like this: > > (add-after 'unpack 'prevent-generation-of-egg-archive > (lambda _ > (substitute* "setup.py" > (("from setuptools import setup") > "from distutils.core import setup")) > #t)) > > It turns out that when =E2=80=98setuptools.setup=E2=80=99 is used egg arc= hives are > built, when =E2=80=98distutils.core.setup=E2=80=99 is used, however, this= does not > happen. But are distutils.core and setuptools the same thing? Replacing one by the other sounds a bit scary, no? Still it would be nice to have a generic solution. Maybe we should patch setuptools itself to change its defaults? Ludo=E2=80=99.