From: Alexandre Duret-Lutz Date: Mon, 5 Nov 2001 17:52:06 +0000 (+0000) Subject: * lib/am/python.am: Cleanup the cleaning section. X-Git-Tag: Release-1-5b~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58170c998484759ca0bf6da7a5fd6c849775b82b;p=thirdparty%2Fautomake.git * lib/am/python.am: Cleanup the cleaning section. * automake.texi (Python): Remove documentation for PYCFILES and PYOFILES. Update the first paragraphes. --- diff --git a/ChangeLog b/ChangeLog index 70ffb51eb..31d9df0a6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-11-05 Alexandre Duret-Lutz + + * lib/am/python.am: Cleanup the cleaning section. + * automake.texi (Python): Remove documentation for PYCFILES + and PYOFILES. Update the first paragraphes. + 2001-11-05 Alexandre Duret-Lutz * automake.in (FOREIGN, GNU, GNITS, AC_CANONICAL_HOST, diff --git a/automake.texi b/automake.texi index 583ef7f1f..31a24b429 100644 --- a/automake.texi +++ b/automake.texi @@ -3135,14 +3135,25 @@ This variable is an @code{sh} expression which is used to set the @cindex Primary variable, PYTHON -Automake provides support for Python modules. Automake will turn on -Python support if the @code{AM_PATH_PYTHON} macro is used in -@file{configure.in}. The @samp{PYTHON} primary is used to hold a list -of @file{.py} files. Possible prefixes for this primary are -@samp{python_} and @samp{noinst_}. Note that if @code{python_PYTHON} is -defined, then @file{configure.in} must run @code{AM_PATH_PYTHON}. +Automake provides support for Python compilation with the @samp{PYTHON} +primary. + +Any files listed in a @samp{_PYTHON} variable will be byte-compiled with +@code{py-compile} at install time. @code{py-compile} actually creates +both standard (@file{.pyc}) and byte-compiled (@file{.pyo}) versions of +the source files. Note that because byte-compilation occurs at install +time, any files listed in @samp{noinst_PYTHON} will not be compiled. Python source files are included in the distribution by default. +Automake ships with an Autoconf macro called @code{AM_PATH_PYTHON} which +will determine some Python-related directory variables (see below). If +have called @code{AM_PATH_PYTHON} from you @file{configure.in}, then you +may use the following variables to list you Python source files in your +variables: @samp{python_PYTHON}, @samp{pkgpython_PYTHON}, +@samp{pkgpython_PYTHON}, @samp{pyexecdir_PYTHON}, +@samp{pkgpyexecdir_PYTHON}, depending where you want your files +installed. + @code{AM_PATH_PYTHON} takes a single optional argument. This argument, if present, is the minimum version of Python which can be used for this package. If the version of Python found on the system is older than the @@ -3193,15 +3204,6 @@ This is a convenience variable which is defined as @samp{$(pyexecdir)/$(PACKAGE)}. @end vtable -@vindex PYCFILES -@vindex PYOFILES - -By default Automake will byte-compile all Python source files to both -@file{.pyc} and @file{.pyo} forms. If you wish to avoid generating the -optimized byte-code files, simply define the variable @code{PYOFILES} to -be empty. Similarly, if you don't wish to generate the standard -byte-compiled files, define the variable @code{PYCFILES} to be empty. - @node Documentation, Install, Other GNU Tools, Top @chapter Building documentation diff --git a/lib/am/python.am b/lib/am/python.am index c0fd5dc0f..4686576ca 100644 --- a/lib/am/python.am +++ b/lib/am/python.am @@ -71,20 +71,8 @@ endif %?INSTALL% ## Cleaning. ## ## ---------- ## -## FIXME: There is nothing to clean here since files are -## byte-compiled when (and where) they are installed. -## Some points thought: -## 1) clean-python ought to be named clean-%DIR%PYTHON, to allow -## multiple _PYTHON targets. -## 2) PYCFILES and PYOFILES are documented but not used anywhere -## else. -## 3) PYCFILES and PYOFILES shoud be target-dependent for the same -## reason. -## -##.PHONY clean-am: clean-python -##clean-python: -## -test -z "$(PYCFILES)$(PYOFILES)" || rm -f $(PYCFILES) $(PYOFILES) - +## There is nothing to clean here since files are +## byte-compiled when (and where) they are installed. ## -------------- ## ## Distributing. ## diff --git a/stamp-vti b/stamp-vti index 5e7b156dc..33ff40b81 100644 --- a/stamp-vti +++ b/stamp-vti @@ -1,4 +1,4 @@ -@set UPDATED 21 October 2001 -@set UPDATED-MONTH October 2001 +@set UPDATED 5 November 2001 +@set UPDATED-MONTH November 2001 @set EDITION 1.5a @set VERSION 1.5a diff --git a/version.texi b/version.texi index 5e7b156dc..33ff40b81 100644 --- a/version.texi +++ b/version.texi @@ -1,4 +1,4 @@ -@set UPDATED 21 October 2001 -@set UPDATED-MONTH October 2001 +@set UPDATED 5 November 2001 +@set UPDATED-MONTH November 2001 @set EDITION 1.5a @set VERSION 1.5a