You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
39 lines
1017 B
Makefile
39 lines
1017 B
Makefile
PHONY=check clean dist distclean test test-unit test-functional rmChangeLog clean_pyc nosetests
|
|
|
|
GIT2CL ?= git2cl
|
|
PYTHON ?= python
|
|
|
|
# Set COMPILE='--compile' to force compilation before check
|
|
COMPILE ?=
|
|
|
|
#: Run all tests
|
|
check: check-short check-2.7-ok
|
|
|
|
## FIXME: there is a bug in our code that I don't
|
|
## find in uncompyle2 that causes this to fail.
|
|
## parsing.
|
|
## the failing program works if run by itself.
|
|
## This leads me to believe the problem is an
|
|
## initialization bug?
|
|
|
|
#: Check deparsing only, but from a different Python version
|
|
check-bytecode:
|
|
$(PYTHON) test_pythonlib.py --bytecode-2.5
|
|
|
|
#: Run quick tests
|
|
check-short:
|
|
$(PYTHON) test_pythonlib.py --base-2.7 --verify $(COMPILE)
|
|
|
|
#: Run longer Python 2.7's lib files known to be okay
|
|
check-2.7-ok:
|
|
$(PYTHON) test_pythonlib.py --ok-2.7 --verify $(COMPILE)
|
|
|
|
clean: clean-py-dis clean-dis
|
|
|
|
clean-dis:
|
|
find . -name '*_dis' -exec rm -v '{}' ';'
|
|
|
|
#: Clean temporary compile/decompile/verify direcotries in /tmp
|
|
clean-py-dis:
|
|
rm -fr /tmp/py-dis-* || true
|