Commit | Line | Data |
---|---|---|
f210f057 SB |
1 | Update the wscript to work with waf-1.8.8. Based on: |
2 | http://cgit.freedesktop.org/pycairo/commit/?id=c57cd129407c904f8c2f752a59d0183df7b01a5e | |
3 | ||
4 | ||
5 | --- pycairo-1.10.0.orig/wscript 2011-04-18 15:42:29.000000000 +0800 | |
6 | +++ pycairo-1.10.0/wscript 2015-04-20 13:01:45.383756898 +0800 | |
7 | @@ -13,18 +13,18 @@ | |
8 | ||
9 | def options(ctx): | |
10 | print(' %s/options()' %d) | |
11 | - ctx.tool_options('gnu_dirs') | |
12 | - ctx.tool_options('compiler_cc') | |
13 | - ctx.tool_options('python') # options for disabling pyc or pyo compilation | |
14 | + ctx.load('gnu_dirs') | |
15 | + ctx.load('compiler_c') | |
16 | + ctx.load('python') # options for disabling pyc or pyo compilation | |
17 | ||
18 | ||
19 | def configure(ctx): | |
20 | print(' %s/configure()' %d) | |
21 | ||
22 | env = ctx.env | |
23 | - ctx.check_tool('gnu_dirs') | |
24 | - ctx.check_tool('compiler_cc') | |
25 | - ctx.check_tool('python') | |
26 | + ctx.load('gnu_dirs') | |
27 | + ctx.load('compiler_c') | |
28 | + ctx.load('python') | |
29 | ctx.check_python_version((3,1,0)) | |
30 | ctx.check_python_headers() | |
31 | ctx.check_cfg(package='cairo', atleast_version=cairo_version_required, |