build: move python setuptools for future non-autotools
The current setup.py.in is an autotools-generated setuptools-like
install script. When building the python-only module, we don't
need the complexity of autotools, but the well-supported python
install behavior is for a script named 'setup.py'. In order to
facilitiate creating a native setuptools setup.py, move the autotools
one to a different name. This allows both to live in parallel for a
bit.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I496a7891451649a06f6761f082195330a53cb967
diff --git a/.gitignore b/.gitignore
index a62370b..4b97ff5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,7 +4,7 @@
*.pyc
*.pyo
/tools/build
-/tools/setup.py
+/tools/setup_autotools.py
# Test suite logs
*.log
diff --git a/configure.ac b/configure.ac
index 45c50b3..34a49be 100644
--- a/configure.ac
+++ b/configure.ac
@@ -185,7 +185,7 @@
AM_CONDITIONAL(BOOST, [test "x$enable_boost" = "xyes"])
# Create configured output
-AC_CONFIG_FILES([Makefile test/Makefile tools/Makefile tools/setup.py])
+AC_CONFIG_FILES([Makefile test/Makefile tools/Makefile tools/setup_autotools.py])
AC_CONFIG_FILES([example/Makefile])
AC_CONFIG_FILES([sdbusplus.pc])
AC_OUTPUT
diff --git a/tools/Makefile.am b/tools/Makefile.am
index 3386cd7..f0c0b3d 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -1,13 +1,13 @@
if WANT_SDBUSPP
all-local:
- $(AM_V_at)$(PYTHON) ${top_builddir}/tools/setup.py build
+ $(AM_V_at)$(PYTHON) ${top_builddir}/tools/setup_autotools.py build
clean-local:
rm -rfv ${top_builddir}/build
install-exec-hook:
- $(AM_V_at)$(PYTHON) ${top_builddir}/tools/setup.py install \
+ $(AM_V_at)$(PYTHON) ${top_builddir}/tools/setup_autotools.py install \
--prefix=$(DESTDIR)${prefix} \
--install-data=$(DESTDIR)${datadir} \
--install-lib=$(DESTDIR)$(PYTHONDIR) \
diff --git a/tools/setup.py.in b/tools/setup_autotools.py.in
similarity index 100%
rename from tools/setup.py.in
rename to tools/setup_autotools.py.in