Fresco/Fresco-Python setup.py.in,NONE,1.1 Makefile.in,1.10,1.11 configure.ac,1.17,1.18
Stefan Seefeld <[email protected]>
| Newsgroups | gmane.comp.video.fresco.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvs/fresco/Fresco/Fresco-Python
In directory purcel:/tmp/cvs-serv5962
Modified Files:
Makefile.in configure.ac
Added Files:
setup.py.in
Log Message:
let 'make install' use python's distutils
--- NEW FILE: setup.py.in ---
#!/usr/bin/env python
from distutils.core import setup
setup(name="Fresco",
version="@PACKAGE_VERSION@",
description="Fresco Python bindings",
url="http://www.fresco.org",
packages=["Fresco"])
Index: Makefile.in
===================================================================
RCS file: /cvs/fresco/Fresco/Fresco-Python/Makefile.in,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- Makefile.in 20 Nov 2002 07:14:20 -0000 1.10
+++ Makefile.in 11 Feb 2003 02:58:37 -0000 1.11
@@ -21,7 +21,9 @@
SHELL := /bin/sh
+prefix := @prefix@
top_srcdir := @top_srcdir@
+srcdir := @srcdir@
subdirs := Fresco
# insert inter-directory dependencies below
@@ -44,12 +46,12 @@
doc: #do nothing here
install:
- $(MAKE) action="install"
+ ./setup.py install --prefix=$(prefix)
install-doc: #do nothing here
uninstall:
- $(MAKE) action="uninstall"
+ rm -rf `./setup.py packagedir`
clean:
$(MAKE) action="clean"
Index: configure.ac
===================================================================
RCS file: /cvs/fresco/Fresco/Fresco-Python/configure.ac,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- configure.ac 10 Dec 2002 05:46:18 -0000 1.17
+++ configure.ac 11 Feb 2003 02:58:37 -0000 1.18
@@ -27,7 +27,7 @@
AC_PREREQ(2.52)
AC_REVISION($Revision$)
-AC_INIT(Berlin, M3, [email protected])
+AC_INIT(Berlin, M1, [email protected])
AC_CONFIG_AUX_DIR(config)
dnl ------------------------------------------------------------------
@@ -41,12 +41,22 @@
AC_SUBST(Fresco_IDL_prefix)
+AC_PATH_PROGS([python_program], [python python1.6 python2.1 python2.2])
+if test ".$python_program" == "." ; then
+ AC_MSG_ERROR([can't install Python bindings without interpreter])
+fi
+
dnl ------------------------------------------------------------------
dnl Output substitution
dnl ------------------------------------------------------------------
dnl AC_MSG_PART(Output Substitution)
-AC_CONFIG_FILES([config/local.mk Makefile Fresco/Makefile:config/Makefile.omniorb.in])
+AC_CONFIG_FILES([setup.py], [chmod +x setup.py])
+AC_CONFIG_FILES([config/local.mk])
+AC_CONFIG_FILES([Makefile Fresco/Makefile:config/Makefile.omniorb.in])
+if test "$srcdir" != .; then
+ AC_CONFIG_LINKS([Fresco/__init__.py:Fresco/__init__.py])
+fi
-AC_OUTPUT
\ No newline at end of file
+AC_OUTPUT