Hi!
I'm looking for the recommended way to handle Python executables.
I've read the current documentation, but it refers only to Python
libraries (unless I'm mistaken).
Looking for some inspiration, I found this old piece of code from
Fran�ois Pinard, but it's problem completely outdated.
----------------------------------------
AUTOMAKE_OPTIONS = gnits
bin_SCRIPTS = libitize
pkgdata_DATA = libit.pyc
EXTRA_DIST = libitize.in libit.py
PYTHON = @PYTHON@
SUFFIXES = .py .pyc
.py.pyc:
@echo "Compiling $<..."
@$(PYTHON) -c "import py_compile; py_compile.compile('$<', '$*.pyc')"
----------------------------------------
----------------------------------------
[EMAIL PROTECTED]@
# Update a distribution by using libit files.
# Copyright � 2000 Progiciels Bourbeau-Pinard inc.
# Fran�ois Pinard <[EMAIL PROTECTED]>, 2000.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
import string, sys
sys.path.insert(0, '@prefix@/share/@PACKAGE@')
package = '@PACKAGE@'
version = '@VERSION@'
prefix = '@prefix@'
datadir = string.replace('@datadir@', '${prefix}', prefix)
pkgdatadir = string.replace('@pkgdatadir@', '${datadir}', datadir)
import libit
apply(libit.main, tuple(sys.argv[1:]))
----------------------------------------
Aside from the needed update for the Makefile.am machinery, is the top
level generation and redirection the recommended way?