add configure

This commit is contained in:
Thomas Vander Stichele
2009-05-22 20:31:32 +00:00
parent 713a5d14fd
commit f0192af6d8
3 changed files with 37 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
CLEANFILES = *.py{c,o}
moapdir = $(PYTHONLIBDIR)/moap/configure
moap_PYTHON = \
__init__.py \
configure.py \
installed.py
noinst_PYTHON = uninstalled.py
BUILT_SOURCES = installed.py uninstalled.py
TAGS_FILES = installed.py.in uninstalled.py.in
DISTCLEANFILES = installed.pyc installed.pyo uninstalled.pyc uninstalled.pyo
EXTRA_DIST = $(moap_PYTHON) installed.py.in uninstalled.py.in

View File

@@ -0,0 +1,10 @@
# -*- Mode: Python -*-
# vi:si:et:sw=4:sts=4:ts=4
import os
def get():
return {
'isinstalled': True,
'version': '@VERSION@',
}

View File

@@ -0,0 +1,9 @@
# -*- Mode: Python -*-
# vi:si:et:sw=4:sts=4:ts=4
def get():
return {
'isinstalled': False,
'version': '@VERSION@',
}