From 4c8b539ef4643755f4aed5425b32f446024bb995 Mon Sep 17 00:00:00 2001 From: Steve Chaplin <> Date: Sun, 27 Mar 2011 12:30:46 +0800 Subject: Update waf from 1.15 to 1.16.3 --- .gitignore | 5 ++++- src/wscript | 6 +++--- test/README | 4 ++-- waf | Bin 92546 -> 83005 bytes wscript | 36 +++++++++++++++--------------------- 5 files changed, 24 insertions(+), 27 deletions(-) diff --git a/.gitignore b/.gitignore index 13034aa..f3db509 100644 --- a/.gitignore +++ b/.gitignore @@ -1,11 +1,14 @@ # top-level .gitignore *~ -.lock-wscript + *.pdf *.png *.ps *.pyc *.pyo *.svg + +.lock* .waf* + build_directory diff --git a/src/wscript b/src/wscript index d30c6ad..0ece7db 100644 --- a/src/wscript +++ b/src/wscript @@ -11,15 +11,15 @@ def build(ctx): 'python'+ctx.env['PYTHON_VERSION'], 'site-packages', 'cairo') # .py files - ctx.new_task_gen( + ctx( features = 'py', source = '__init__.py', install_path = pycairoLibDir, ) # C extension module - ctx.new_task_gen( - features = 'cc cshlib pyext', + ctx( + features = 'c cshlib pyext', source = ['cairomodule.c', 'context.c', 'font.c', diff --git a/test/README b/test/README index 15a9b7d..799fcb7 100644 --- a/test/README +++ b/test/README @@ -2,8 +2,8 @@ pycairo tests ------------- The main test files are the '*_test.py' files. -They use py.test from pylib. -http://codespeak.net/py/dist/ +They use py.test. +http://pytest.org/ $ cd test $ py.test diff --git a/waf b/waf index 5d00bdf..0dcf397 100755 Binary files a/waf and b/waf differ diff --git a/wscript b/wscript index cf66711..5403a7c 100644 --- a/wscript +++ b/wscript @@ -8,29 +8,21 @@ d = top APPNAME='pycairo' VERSION='1.8.11' -cairo_version_required = '1.8.10' +cairo_version_required = '1.10.0' -def set_options(ctx): - print(' %s/set_options()' %d) +def options(ctx): + print(' %s/options()' %d) ctx.tool_options('gnu_dirs') ctx.tool_options('compiler_cc') ctx.tool_options('python') # options for disabling pyc or pyo compilation -def init(): # run at start of any waf invocation - print(' %s/init()' %d) - -def shutdown(): # run at end of any waf invocation - print(' %s/shutdown()' %d) - - def configure(ctx): print(' %s/configure()' %d) env = ctx.env ctx.check_tool('gnu_dirs') - ctx.check_tool('misc') ctx.check_tool('compiler_cc') ctx.check_tool('python') ctx.check_python_version((3,1,0)) @@ -57,18 +49,20 @@ def configure(ctx): def build(ctx): print(' %s/build()' %d) - ctx.add_subdirs('src') + ctx.recurse('src') # generate and install the .pc file - obj = ctx.new_task_gen('subst') - obj.source = 'py3cairo.pc.in' - obj.target = 'py3cairo.pc' - obj.dict = { - 'VERSION' : VERSION, - 'prefix' : ctx.env['PREFIX'], - 'includedir': os.path.join(ctx.env['PREFIX'], 'include'), - } - obj.install_path = os.path.join(ctx.env['LIBDIR'], 'pkgconfig') + ctx( + features = 'subst', + source = 'py3cairo.pc.in', + target = 'py3cairo.pc', + dct = { + 'VERSION' : VERSION, + 'prefix' : ctx.env['PREFIX'], + 'includedir': os.path.join(ctx.env['PREFIX'], 'include'), + }, + install_path = os.path.join(ctx.env['LIBDIR'], 'pkgconfig'), + ) def dist_hook(): -- cgit v1.2.3