From patchwork Sat Sep 12 11:56:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Titouan Christophe X-Patchwork-Id: 1362844 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=railnova.eu Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=railnova-eu.20150623.gappssmtp.com header.i=@railnova-eu.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=B5UPwNXJ; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BpWMS027Yz9sTC for ; Sat, 12 Sep 2020 21:57:23 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 73E0886166; Sat, 12 Sep 2020 11:57:21 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7bleFMxa7S1U; Sat, 12 Sep 2020 11:57:19 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id C93B685F15; Sat, 12 Sep 2020 11:57:19 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id CDA0F1BF475 for ; Sat, 12 Sep 2020 11:57:17 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id CA64987690 for ; Sat, 12 Sep 2020 11:57:17 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hNUgh78eeodZ for ; Sat, 12 Sep 2020 11:57:17 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) by hemlock.osuosl.org (Postfix) with ESMTPS id 15F3C87689 for ; Sat, 12 Sep 2020 11:57:17 +0000 (UTC) Received: by mail-ej1-f45.google.com with SMTP id o8so16921374ejb.10 for ; Sat, 12 Sep 2020 04:57:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=railnova-eu.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=acsAzdF+Com8AfPpuXr6feJNmCbZsKXpTXAKckzN3vA=; b=B5UPwNXJd6BJWR/ncFFF5LqALKFIxwZtKe+ABGkVm6yQt4RGBR8FzLdfWrbK2jjv7T eulL0+vGgb9hKb+O7CdcbnUmz+Bb3G37dpvnotwuU0fZkGtGrS1666goKJMb2JZgadeN 2zBTAwOVYVvt1rftcCTJbBei0NmkMuOrxQ3F6wLhjejoZ8fyfM9ZZ6/Hj8KreTuAMioe Nez2Behc9jCFuz5grTL9nRFvSkcso4QJYXh/auh6uy1T8iDfQOdECVaHMkWjY7bj+FoV vIkOsAdcXYJerNllEHoXsvlchQuv002Wm7hVqCcKl0IHw3z3m2rlc7qmMXfhrbIlNWpV 4+tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=acsAzdF+Com8AfPpuXr6feJNmCbZsKXpTXAKckzN3vA=; b=mzwj5ryTdXHKjQcgiJUTSOehZ0gomdjHKqaN/hnadNZZoR1EAhPmTOmp9W4sZEe67D w+9TRCv5Xb1ZBPJvE8SkT2+08k1wLQUMbfnGn9cRohdNIqyUYEe+StKm8hYgsLCd4qor YaGwdXT0c/j7v6fGjvW5PJ/E0VgNSgdkKVIffPNU9IOgaiEnAkVYCwWkztvLgqC6PHtC t6Qh5IiEm8wQq8vqBlF/FoU0GG6TYwPP8TsQhHmMSsQRhAdg2lpsEzG3rVla2g25crjj C9iuyIvqP/ftK5Fro9ngxnEAljuo+MJ/xORadDkapbpJvQIaIy715rlaywAvXAsCKrVc EslQ== X-Gm-Message-State: AOAM533ThgQE0uek4NQHKgGNNZzKsDJfCBLJf7sIYySN1q0AmuTZVWZt 7NXMIJCuQNEo9C+hEcuqpU8m1LZh0ZYSl1Qs X-Google-Smtp-Source: ABdhPJwZXePO43EHZRjP0ZyknSwIAA/YjDfvz447hlhKWpfcTthzB8Ejxv1oMQt5F+fz3Go6cBFOGA== X-Received: by 2002:a17:906:4c58:: with SMTP id d24mr6003124ejw.108.1599911835280; Sat, 12 Sep 2020 04:57:15 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:63d3:7700:5fb9:2a66:a7a8:378f]) by smtp.gmail.com with ESMTPSA id p11sm4409094edu.93.2020.09.12.04.57.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Sep 2020 04:57:14 -0700 (PDT) From: Titouan Christophe To: buildroot@buildroot.org Date: Sat, 12 Sep 2020 13:56:22 +0200 Message-Id: <20200912115622.134543-2-titouan.christophe@railnova.eu> X-Mailer: git-send-email 2.25.3 In-Reply-To: <20200912115622.134543-1-titouan.christophe@railnova.eu> References: <20200912115622.134543-1-titouan.christophe@railnova.eu> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 2/2] package/python: do not install MS Windows installers on the target X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Adam Duskett , Titouan Christophe , Thomas Petazzoni , Asaf Kahlon Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Buildroot generates Linux systems, so there is no need to have MS Windows executables in there. This reduces the target filesystem size by about 600kB: $ du -hcs usr/lib/python2.7/distutils/command/wininst-*.exe 60K usr/lib/python2.7/distutils/command/wininst-6.0.exe 64K usr/lib/python2.7/distutils/command/wininst-7.1.exe 60K usr/lib/python2.7/distutils/command/wininst-8.0.exe 192K usr/lib/python2.7/distutils/command/wininst-9.0.exe 220K usr/lib/python2.7/distutils/command/wininst-9.0-amd64.exe 596K total Signed-off-by: Titouan Christophe --- package/python/python.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/package/python/python.mk b/package/python/python.mk index ccaaadd012..a08732cb22 100644 --- a/package/python/python.mk +++ b/package/python/python.mk @@ -199,6 +199,7 @@ define PYTHON_REMOVE_USELESS_FILES rm -f $(TARGET_DIR)/usr/bin/python2-config rm -f $(TARGET_DIR)/usr/bin/python-config rm -f $(TARGET_DIR)/usr/bin/smtpd.py + rm -f $(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/distutils/command/wininst*.exe for i in `find $(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/config/ \ -type f -not -name pyconfig.h -a -not -name Makefile` ; do \ rm -f $$i ; \