Commit 84404f8f authored by Kirill Smelkov's avatar Kirill Smelkov

X setup: Add build dependency information

Manaully, because there is no automatic dependency tracking in
setuptools...

Dependency tracking is needed to avoid miscompilation after incremental
update under SlapOS/buildout/testnode/... when e.g. only .h was changed.
parent f622e751
......@@ -265,6 +265,24 @@ def readfile(path):
with open(path, 'r') as f:
return f.read()
libvirtmem_h = [
'3rdparty/include/linux/list.h',
'include/wendelin/bigfile/file.h',
'include/wendelin/bigfile/pagemap.h',
'include/wendelin/bigfile/ram.h',
'include/wendelin/bigfile/types.h',
'include/wendelin/bigfile/virtmem.h',
'include/wendelin/bug.h',
'include/wendelin/list.h',
'include/wendelin/utils.h',
]
libwcfs_h = [
'wcfs/client/wcfs.h',
'wcfs/client/wcfs_misc.h',
'wcfs/client/wcfs_watchlink.h',
]
setup(
name = 'wendelin.core',
version = '0.14', # XXX aka 2.0.0.dev1
......@@ -287,6 +305,7 @@ setup(
'bigfile/virtmem.c',
'lib/bug.c',
'lib/utils.c'],
depends = libvirtmem_h,
define_macros = [('_GNU_SOURCE',None), ('BUILDING_LIBVIRTMEM',None)],
language = 'c'),
......@@ -294,11 +313,16 @@ setup(
['wcfs/client/wcfs.cpp',
'wcfs/client/wcfs_watchlink.cpp',
'wcfs/client/wcfs_misc.cpp'],
depends = libvirtmem_h + libwcfs_h,
dsos = ['wendelin.bigfile.libvirtmem'])],
ext_modules = [
PyGoExt('wendelin.bigfile._bigfile',
['bigfile/_bigfile.c'],
depends = [
'bigfile/_bigfile.h',
'include/wendelin/compat_py2.h',
] + libvirtmem_h,
define_macros = [('_GNU_SOURCE',None)],
language = 'c',
dsos = ['wendelin.bigfile.libvirtmem']),
......@@ -306,10 +330,15 @@ setup(
PyGoExt('wendelin.bigfile._file_zodb',
['bigfile/_file_zodb.pyx',
'bigfile/file_zodb.cpp'],
depends = [
'wcfs/client/_wcfs.pxd',
'bigfile/_bigfile.h',
] + libwcfs_h + libvirtmem_h,
dsos = ['wendelin.wcfs.client.libwcfs']),
PyGoExt('wendelin.wcfs.client._wcfs',
['wcfs/client/_wcfs.pyx'],
depends = libwcfs_h + libvirtmem_h,
dsos = ['wendelin.wcfs.client.libwcfs']),
PyGoExt('wendelin.wcfs.internal.wcfs_test',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment