From d95abdd9183be7e0d895d19818dad8d8ad263e52 Mon Sep 17 00:00:00 2001 From: Marc Slemko Date: Tue, 16 Jan 2007 22:20:19 +0000 Subject: [PATCH] Added autoconf/automake glue to run lib/py/setup.py as part of make install Reviewed by mslee git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664914 13f79535-47bb-0310-9956-ffa450edef68 --- bootstrap.sh | 2 +- configure.ac | 2 +- lib/py/Makefile.am | 2 ++ lib/py/bootstrap.sh | 36 ++++++++++++++++++++++++++++++++++++ lib/py/configure.ac | 13 +++++++++++++ 5 files changed, 53 insertions(+), 2 deletions(-) create mode 100644 lib/py/Makefile.am create mode 100755 lib/py/bootstrap.sh create mode 100644 lib/py/configure.ac diff --git a/bootstrap.sh b/bootstrap.sh index e994cc17..c6a973bc 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -1,6 +1,6 @@ #!/bin/sh -subdirs="compiler/py lib/cpp lib/php" +subdirs="compiler/py lib/cpp lib/php lib/py" rm -rf \ AUTHORS \ diff --git a/configure.ac b/configure.ac index 468cf61e..b676d31d 100644 --- a/configure.ac +++ b/configure.ac @@ -8,6 +8,6 @@ AM_INIT_AUTOMAKE AC_CONFIG_FILES([Makefile]) -AC_CONFIG_SUBDIRS([compiler/py lib/cpp lib/php]) +AC_CONFIG_SUBDIRS([compiler/py lib/cpp lib/php lib/py]) AC_OUTPUT diff --git a/lib/py/Makefile.am b/lib/py/Makefile.am new file mode 100644 index 00000000..579a3ebb --- /dev/null +++ b/lib/py/Makefile.am @@ -0,0 +1,2 @@ +install-exec-hook: + $(PYTHON) setup.py install diff --git a/lib/py/bootstrap.sh b/lib/py/bootstrap.sh new file mode 100755 index 00000000..11f41a9a --- /dev/null +++ b/lib/py/bootstrap.sh @@ -0,0 +1,36 @@ +#!/bin/sh + +rm -rf \ +AUTHORS \ +COPYING \ +ChangeLog \ +INSTALL \ +Makefile \ +Makefile.in \ +Makefile.orig \ +NEWS \ +README \ +aclocal.m4 \ +autom4te.cache \ +autoscan.log \ +config.guess \ +config.h \ +config.hin \ +config.log \ +config.status \ +config.sub \ +configure \ +configure.scan \ +depcomp \ +.deps \ +install-sh \ +.libs \ +libtool \ +ltmain.sh \ +Makefile.in \ +missing + +aclocal +touch NEWS README AUTHORS ChangeLog +autoconf +automake -ac diff --git a/lib/py/configure.ac b/lib/py/configure.ac new file mode 100644 index 00000000..7014fa93 --- /dev/null +++ b/lib/py/configure.ac @@ -0,0 +1,13 @@ +AC_PREREQ(2.59) + +AC_INIT([thriftpy], [1.0]) + +AC_CONFIG_AUX_DIR([.]) + +AM_INIT_AUTOMAKE + +AM_PATH_PYTHON(2.4,, :) + +AC_CONFIG_FILES([Makefile]) + +AC_OUTPUT -- 2.17.1