Skip to content

Instantly share code, notes, and snippets.

@yyuu
Last active December 17, 2015 06:29
Show Gist options
  • Select an option

  • Save yyuu/5566264 to your computer and use it in GitHub Desktop.

Select an option

Save yyuu/5566264 to your computer and use it in GitHub Desktop.
a patch for WAF 1.6.3 (which is used by pycairo-1.10.0)
diff -r -u waflib.orig/Tools/python.py waflib/Tools/python.py
--- waflib.orig/Tools/python.py 2013-05-13 14:23:09.000000000 +0900
+++ waflib/Tools/python.py 2013-05-13 14:22:51.000000000 +0900
@@ -96,7 +96,7 @@
continue
if s=='None':
return_values.append(None)
- elif s[0]=="'"and s[-1]=="'":
+ elif ( s[0]=="'"and s[-1]=="'" ) or ( s[0]=='"'and s[-1]=='"' ):
return_values.append(s[1:-1])
elif s[0].isdigit():
return_values.append(int(s))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment