bayeslite icon indicating copy to clipboard operation
bayeslite copied to clipboard

python setup.py clean should clean auxiliary files created by running tests, e.g. .pyc files

Open riastradh-probcomp opened this issue 9 years ago • 4 comments

riastradh-probcomp avatar Jul 29 '15 21:07 riastradh-probcomp

@riastradh-probcomp, is this the XXX that's referenced in packaging/debian/rules files? https://github.com/probcomp/packaging/blob/master/debian/crosscat/rules

Sounds like a pretty small project.

gregory-marton avatar Nov 17 '15 21:11 gregory-marton

It's not the same as the Debian packaging issue but it's similar.

The Debian packaging issue is that python setup.py clean does not clean everything that python setup.py build built -- in particular, src/grammar.py, src/grammar.sha256, and src/version.py.

The test issue is that python setup.py clean does not clean everything that ./check.sh or python setup.py test created -- in particular, tests/*.pyc.

riastradh-probcomp avatar Nov 17 '15 23:11 riastradh-probcomp

Is it hard for clean to clean all those, for some reason?

gregory-marton avatar Nov 18 '15 19:11 gregory-marton

No, it should be pretty easy, although it would be nice, as a perhaps separate but related issue, if running the tests in a read-only tree worked -- that would obviate the need for python setup.py clean to delete tests/*.pyc.

riastradh-probcomp avatar Nov 18 '15 20:11 riastradh-probcomp