summaryrefslogtreecommitdiff
path: root/morphlib/buildsystem.py
diff options
context:
space:
mode:
Diffstat (limited to 'morphlib/buildsystem.py')
-rw-r--r--morphlib/buildsystem.py29
1 files changed, 28 insertions, 1 deletions
diff --git a/morphlib/buildsystem.py b/morphlib/buildsystem.py
index 6bff51b2..66d6ff62 100644
--- a/morphlib/buildsystem.py
+++ b/morphlib/buildsystem.py
@@ -123,12 +123,39 @@ class AutotoolsBuildSystem(BuildSystem):
return any(exists(x) for x in indicators)
+class PythonDistutilsBuildSystem(BuildSystem):
+
+ '''The Python distutils build systems.'''
+
+ name = 'python-distutils'
+
+ def __init__(self):
+ self.configure_commands = [
+ ]
+ self.build_commands = [
+ 'python setup.py build',
+ ]
+ self.test_commands = [
+ ]
+ self.install_commands = [
+ 'python setup.py install --root "$DESTDIR"',
+ ]
+
+ def used_by_project(self, exists):
+ indicators = [
+ 'setup.py',
+ ]
+
+ return any(exists(x) for x in indicators)
+
+
build_systems = [
ManualBuildSystem(),
AutotoolsBuildSystem(),
+ PythonDistutilsBuildSystem(),
DummyBuildSystem(),
]
-
+
def detect_build_system(exists):
'''Automatically detect the build system, if possible.