From owner-freebsd-python@freebsd.org Tue Dec 13 11:01:55 2016 Return-Path: Delivered-To: freebsd-python@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BCECDC72F19 for ; Tue, 13 Dec 2016 11:01:55 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 96A2614DD for ; Tue, 13 Dec 2016 11:01:55 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 95F08C72F18; Tue, 13 Dec 2016 11:01:55 +0000 (UTC) Delivered-To: python@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 958BBC72F17 for ; Tue, 13 Dec 2016 11:01:55 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: from mail-pg0-x235.google.com (mail-pg0-x235.google.com [IPv6:2607:f8b0:400e:c05::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6205514D9; Tue, 13 Dec 2016 11:01:55 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: by mail-pg0-x235.google.com with SMTP id f188so46625045pgc.3; Tue, 13 Dec 2016 03:01:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:reply-to:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=K7O4OkvkBz+o3f1bVErNdcImcMn1mrNc+kOoMP/JdZo=; b=0yCzT+7aJUTiVPueAGGVHE6dE2mzQBT0NqOJBpIRhIu6pbkv8h6Q8k4oJ++SH+wZ+R 6kC83r0+Zb6eBV3F3rbHCuDFnKVHvZ6bGXGQcLdQgRb4EByomLhEEAjWNUAlOQcpGgPH NgbQmkL8XlXuKHBERWfQNnlhMJiQUFvaV65t31/loqWdNALC/u1/gqP8k3jfFgutOq1x 5MqB2UOAZSaor+DeeRh5JBXJuHCm1ERwYwHuD3n9hgxZPxGldvlVn1megWjwY9v5N5Gb LUUXMv4vZIVu9/gVIohQQPVQ6MikKLTVMVjYFyISbrkMTUs8lvsJVC3mLgFdX4THaCzR xcwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:reply-to:subject:to:cc:references:from :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=K7O4OkvkBz+o3f1bVErNdcImcMn1mrNc+kOoMP/JdZo=; b=MyfpPtzYSGK1gwakRPtGRExylOwGFh2pCQKyVoJZQYF6sgQR9WMv7IHrADhARDi5sy Ag2vz+O+3ggKdTuEfyMt8nvps+fIKzsoEH5+I7HEk2uoOvFX4+Zy3dzH61wYaHKYSdum 7M8hq4121f1UnOGJLOB8JmtllvaSk1QGr8i+6pAMJaZJRaQPWVvyzCvGmd2ZG3JvO3OV m638KQ+TCXQd8pZsgQRH4w8OoX3ChZWKbAOvmhZrk+qbAAqkltipH9RP5xBINtvL++7e 01PAHifssqdVgCGSI3yNWngrW8BzaDMVe4siH+QmdaAwriKgPCmh60KGCURW1SQWfvVT v7Dg== X-Gm-Message-State: AKaTC01QwuWcHJYqZOqcqqy8VU7PTqW36CHMSOqiiViDbp1ffKHthNtk3sJyYTLuhND5Ng== X-Received: by 10.99.49.213 with SMTP id x204mr173559875pgx.92.1481626914593; Tue, 13 Dec 2016 03:01:54 -0800 (PST) Received: from ?IPv6:2001:44b8:31ae:7b01:605f:517:1eea:14db? (2001-44b8-31ae-7b01-605f-0517-1eea-14db.static.ipv6.internode.on.net. [2001:44b8:31ae:7b01:605f:517:1eea:14db]) by smtp.gmail.com with ESMTPSA id 64sm79988301pfu.17.2016.12.13.03.01.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Dec 2016 03:01:54 -0800 (PST) Sender: Kubilay Kocak Reply-To: koobs@FreeBSD.org Subject: Re: lang/python3* ports, __pycache__ included To: Kyle Evans Cc: Marcus von Appen , python@freebsd.org References: From: Kubilay Kocak Message-ID: Date: Tue, 13 Dec 2016 21:59:32 +1100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.0a2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-AU Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2016 11:01:55 -0000 On 13/12/2016 9:13 AM, Kyle Evans wrote: > On Mon, Dec 12, 2016 at 3:51 PM, Marcus von Appen > wrote: >> Hi Kyle, >> >>> [snip] >> >> this is a python3 specific change in how python deals with >> optimized bytecode files. We ship .pyc/.pyo files for python2 ports >> and __pycache__ bits for python3, so there is no change in >> packaging behaviour except from "sticking to the default". > > Ahh, ok, that makes sense. > >>> [snip] >> >> Few years ago, we already had an idea about that. You can read it >> at https://wiki.freebsd.org/Python/CompiledPackages. If space is a >> major concern for you (but a small drawback in runtime performance >> is not), let us know, so we put it up on the agenda (again). > > In some of my environments, it definitely is a concern. In one or > two applications, I have limited disk size to work with but a lot of > memory to otherwise operate on -- so these things being created at > runtime isn't much issue, but having them on disk tends towards > problematic. > > Given that this is not a very 'black or white' problem (as evident > from the CompiledPackages wiki page), I will strip these entries > from the pkg-plist myself for the time being and maybe work on > finding time to assist in a better solution for the whole. Note that they will be re-created on import unless one overrides the default for the interpreter to produce these optimization files. I'm not sure (or cant remember) if there is a good way to disable this on a global or system-wide basis. I second Marcus's comment that being able to not have to package optimized files and have them be created (optionally?) at package post-install time instead, would be a good thing overall TM.