1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- #! /bin/sh
- required=python
- . test-init.sh
- cat >> configure.ac <<'EOF'
- AM_PATH_PYTHON
- AC_OUTPUT
- EOF
- cat > Makefile.am <<'END'
- yesinstdir = $(prefix)/py
- noinst_PYTHON = no.py
- yesinst_PYTHON = yes.py
- disttest: distdir
- test -f $(distdir)/no.py
- test -f $(distdir)/yes.py
- END
- echo 'def foo(): return 1' > yes.py
- echo 'if' > no.py
- $ACLOCAL
- $AUTOCONF
- $AUTOMAKE --add-missing
- test -f py-compile
- ./configure --prefix="$(pwd)/inst"
- $MAKE install
- test -f inst/py/yes.py
- test ! -e inst/py/no.py
- py_installed inst/py/yes.pyc
- py_installed --not inst/py/no.pyc
- $MAKE disttest
- :
|