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 16:32:19 +0200 Message-ID: References: <87612aq2pl.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]:54998) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zm0dV-0005oC-MD for bug-guix@gnu.org; Tue, 13 Oct 2015 10:33:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zm0dS-0002r0-FL for bug-guix@gnu.org; Tue, 13 Oct 2015 10:33:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:49894) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zm0dS-0002qu-Ay for bug-guix@gnu.org; Tue, 13 Oct 2015 10:33:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87612aq2pl.fsf@gnu.org> 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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 20765@debbugs.gnu.org Ludovic Courtès writes: >> 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. > > But are distutils.core and setuptools the same thing? Replacing one by > the other sounds a bit scary, no? I’m not familiar with Python packaging. From what I understand, distutils has much fewer features than setuptools; but in the few cases that I tried replacing it did work out just fine. > Still it would be nice to have a generic solution. Maybe we should > patch setuptools itself to change its defaults? This would probably be best, but I don’t understand setuptools enough to propose a patch. ~~ Ricardo