From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: bug#20765: Python .egg files must not be compressed Date: Tue, 13 Oct 2015 15:38:38 +0200 Message-ID: References: <87zj4btfuo.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37446) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZlznH-0003aR-Dh for bug-guix@gnu.org; Tue, 13 Oct 2015 09:39:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZlznD-0002BJ-Co for bug-guix@gnu.org; Tue, 13 Oct 2015 09:39:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:48946) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZlznD-0002BF-9T for bug-guix@gnu.org; Tue, 13 Oct 2015 09:39:03 -0400 In-Reply-To: <87zj4btfuo.fsf@gnu.org> Sender: "Debbugs-submit" Resent-Message-ID: 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: 20765@debbugs.gnu.org I stumbled upon a similar problem when building other Python packages. For ‘python-patsy’, for example, I found that an egg archive is produced no matter what I put in ‘setup.cfg’. As far as I can tell, “zip_ok” defaults to “0” in recent versions of setuptools, so I don’t think the fix you used on ‘python-pillow’ would have much effect in general. 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 ‘setuptools.setup’ is used egg archives are built, when ‘distutils.core.setup’ is used, however, this does not happen. ~~ Ricardo