Path: csiph.com!aioe.org!bofh.it!news.nic.it!robomod From: Ben Finney Newsgroups: linux.debian.maint.python Subject: Compiled bytecode installed, because test suite was run Date: Tue, 12 Apr 2016 06:00:01 +0200 Message-ID: X-Original-To: debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Tue Apr 12 03:50:58 2016 Old-Return-Path: X-Amavis-Spam-Status: No, score=-8.695 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, HEADER_FROM_DIFFERENT_DOMAINS=0.001, LDO_WHITELIST=-5, RCVD_IN_DNSWL_LOW=-0.7, RP_MATCHES_RCVD=-0.996] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -6.1 X-Injected-Via-Gmane: http://gmane.org/ Lines: 25 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: jigong.madmonks.org X-Public-Key-ID: 0xAC128405 X-Public-Key-Fingerprint: 517C F14B B2F3 98B0 CB35 4855 B8B2 4C06 AC12 8405 X-Public-Key-URL: http://www.benfinney.id.au/contact/bfinney-pubkey.asc X-Post-From: Ben Finney User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Cancel-Lock: sha1:V3Gr+wxsQfypdcWuI1z0utTopDs= X-Mailing-List: archive/latest/13743 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/857fg31o56.fsf@benfinney.id.au Approved: robomod@news.nic.it Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Tue, 12 Apr 2016 13:50:29 +1000 X-Original-Message-ID: <857fg31o56.fsf@benfinney.id.au> X-Original-X-Complaints-To: usenet@ger.gmane.org Xref: csiph.com linux.debian.maint.python:8416 Howdy all, I am packaging a code base, which has a test suite. The compiled byte code from the test suite run, is being collected when Pybuild discovers the resulting Python packages. As far as I can determine, these steps are occurring: * Pybuild runs the upstream test suite * which imports the Python packages * which creates the compiled bytecode files * which remain in the package directories * which are scooped up by Pybuild for installation * which leads to Lintian correctly complaining “package-installs-python-pycache-dir”. How do I convince Pybuild to run the tests as part of the package build (as normal), but clean up the compiled files *after* the tests and *before* gathering the installed files? -- \ “The great thing about science is we can test our ideas.… But | `\ until we do, until we have data, it is just one more proposal.” | _o__) —Darren Saunders, 2015-12-02 | Ben Finney