diff options
-rwxr-xr-x | bootstrap.sh | 2 | ||||
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | lib/py/Makefile.am | 2 | ||||
-rwxr-xr-x | lib/py/bootstrap.sh | 36 | ||||
-rw-r--r-- | lib/py/configure.ac | 13 |
5 files changed, 53 insertions, 2 deletions
diff --git a/bootstrap.sh b/bootstrap.sh index e994cc177..c6a973bc9 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 468cf61e8..b676d31dc 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 000000000..579a3ebb0 --- /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 000000000..11f41a9a8 --- /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 000000000..7014fa936 --- /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 |