From 7acf88a0bf93556e63e186e8ef9e8ee71dbce3fe Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Wed, 15 Jun 2011 09:17:43 -0700 Subject: [PATCH] add depends --- bindings/python/setup.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bindings/python/setup.py b/bindings/python/setup.py index c5c179ac..1123d526 100755 --- a/bindings/python/setup.py +++ b/bindings/python/setup.py @@ -22,6 +22,7 @@ import sys build = 'build' options = {'perl':'perl'} +deps = [build + '/_sigar_generated.c'] def parse_args(): global options @@ -59,6 +60,7 @@ if 'sigar' in options: _sigar = Extension( "_sigar", ["_sigar.c"], + depends = deps, include_dirs = [sigar + '/include', build], extra_compile_args = ['-Wall'], libraries=['sigar'], @@ -72,6 +74,7 @@ else : _sigar = Extension( "_sigar", src, + depends = deps, include_dirs = [build], extra_compile_args = cppflags, extra_link_args = sargs('ldflags'),