diff --git a/wscript b/wscript
index 2543c65..65006b5 100644
--- a/wscript
+++ b/wscript
@@ -55,6 +55,8 @@ def configure(conf):
if not conf.env.BUILD_SHARED and not conf.env.BUILD_STATIC:
conf.fatal('Neither a shared nor a static build requested')
+ conf.env.SUIL_MAJOR_VERSION = SUIL_MAJOR_VERSION
+
if conf.env.DOCS:
conf.load('sphinx')