Skip to content

Instantly share code, notes, and snippets.

@suma
Created April 8, 2013 04:56
Show Gist options
  • Select an option

  • Save suma/5334326 to your computer and use it in GitHub Desktop.

Select an option

Save suma/5334326 to your computer and use it in GitHub Desktop.
Python 2.4 and 3.0 patch for jubatus
diff --git a/wscript b/wscript
index e664ff9..76691a9 100644
--- a/wscript
+++ b/wscript
@@ -1,5 +1,6 @@
import Options
import os
+import sys
VERSION = '0.4.2'
APPNAME = 'jubatus'
@@ -55,7 +56,8 @@ def configure(conf):
try:
conf.check_cfg(package = 'libglog', args = '--cflags --libs')
conf.check_cfg(package = 'pficommon', args = '--cflags --libs')
- except conf.errors.ConfigurationError as e:
+ except conf.errors.ConfigurationError:
+ e = sys.exc_info()[1]
conf.to_log("PKG_CONFIG_PATH: " + os.environ.get('PKG_CONFIG_PATH', ''))
conf.fatal("Failed to find the library. Please confirm that PKG_CONFIG_PATH environment variable is correctly set.", e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment