changeset 4502:9bf6233a37d5

Add tools::python to python build dependencies.
author Jan Nieuwenhuizen <janneke@gnu.org>
date Sat, 25 Oct 2008 08:52:51 +0200
parents bb50fa3478e6
children aeeca70ddc3f
files gub/specs/python.py gub/specs/python25.py
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gub/specs/python.py	Fri Oct 24 23:17:03 2008 +0200
+++ b/gub/specs/python.py	Sat Oct 25 08:52:51 2008 +0200
@@ -19,7 +19,7 @@
         return ['doc', 'devel', 'runtime', '']
 
     def get_build_dependencies (self):
-        return ['expat-devel', 'zlib-devel']
+        return ['expat-devel', 'zlib-devel', 'tools::python']
 
     def get_dependency_dict (self):
         return { '': ['expat', 'python-runtime', 'zlib'],
@@ -139,6 +139,8 @@
 
 class Python__tools (toolsbuild.ToolsBuild, Python):
     source = 'http://python.org/ftp/python/2.4.5/Python-2.4.5.tar.bz2'
+    def get_build_dependencies (self):
+        return ['autoconf', 'libtool']
     def configure (self):
         self.system ('''cd %(srcdir)s && autoconf''')
         self.system ('''cd %(srcdir)s && libtoolize --copy --force''')
--- a/gub/specs/python25.py	Fri Oct 24 23:17:03 2008 +0200
+++ b/gub/specs/python25.py	Sat Oct 25 08:52:51 2008 +0200
@@ -32,7 +32,7 @@
         return ['doc', 'devel', 'runtime', '']
 
     def get_build_dependencies (self):
-        return ['expat-devel', 'zlib-devel']
+        return ['expat-devel', 'zlib-devel', 'tools::python2.5']
 
     def get_dependency_dict (self):
         return { '': ['expat', 'python-runtime', 'zlib'],
@@ -123,6 +123,8 @@
 from gub import toolsbuild
 class Python__tools (toolsbuild.ToolsBuild, Python):
     source = Python.source
+    def get_build_dependencies (self):
+        return ['autoconf', 'libtool']
     def configure (self):
         self.system ('''cd %(srcdir)s && autoconf''')
         self.system ('''cd %(srcdir)s && libtoolize --copy --force''')