Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #8416

Compiled bytecode installed, because test suite was run

From Ben Finney <ben+debian@benfinney.id.au>
Newsgroups linux.debian.maint.python
Subject Compiled bytecode installed, because test suite was run
Date 2016-04-12 06:00 +0200
Message-ID <rmXEB-pr-3@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.debian.maint.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Compiled bytecode installed, because test suite was run Ben Finney <ben+debian@benfinney.id.au> - 2016-04-12 06:00 +0200
  Re: Compiled bytecode installed, because test suite was run Piotr Ożarowski <piotr@debian.org> - 2016-04-12 09:00 +0200
    Re: Compiled bytecode installed, because test suite was run Ben Finney <ben+debian@benfinney.id.au> - 2016-04-12 09:40 +0200
      Re: Compiled bytecode installed, because test suite was run Piotr Ożarowski <piotr@debian.org> - 2016-04-12 10:00 +0200
    Re: Compiled bytecode installed, because test suite was run Ben Finney <ben+debian@benfinney.id.au> - 2016-04-13 03:00 +0200
      Re: Compiled bytecode installed, because test suite was run Piotr Ożarowski <piotr@debian.org> - 2016-04-13 11:10 +0200
        Re: Compiled bytecode installed, because test suite was run Piotr Ożarowski <piotr@debian.org> - 2016-04-13 11:50 +0200
        Re: Compiled bytecode installed, because test suite was run Ben Finney <ben+debian@benfinney.id.au> - 2016-04-13 12:50 +0200
          Re: Compiled bytecode installed, because test suite was run Piotr Ożarowski <piotr@debian.org> - 2016-04-13 14:00 +0200

csiph-web