Source

SCons / debian / rules

Diff from to

File debian/rules

 # Overridable variables added to support building test .deb files
 # as part of routine SCons builds.  --SK
 BUILDDEB_OPTIONS=
-PYTHON=/usr/bin/python2.2
+PYTHON_VERSION=`python -V 2>&1| cut -d" " -f2 | cut -d"." -f0-2`
+PYTHON_PATH=/usr/bin/python
+PYTHON=$(PYTHON_PATH)$(PYTHON_VERSION)
 #######
 
 # Uncomment this to turn on verbose mode.
 	@# already exist on our non-Debian test build systems.  Hence,
 	@# we do a lot of mkdir -p and rm -f here...  --SK
 	@########
-	mkdir -p debian/scons/usr/lib/python2.2/site-packages/
-	rm -rf debian/scons/usr/lib/python2.2/site-packages/SCons
-	cp -r build/lib/SCons debian/scons/usr/lib/python2.2/site-packages/
+	mkdir -p debian/scons/usr/lib/python$(PYTHON_VERSION)/site-packages/
+	rm -rf debian/scons/usr/lib/python$(PYTHON_VERSION)/site-packages/SCons
+	cp -r build/lib/SCons debian/scons/usr/lib/python$(PYTHON_VERSION)/site-packages/
 
 	mkdir -p debian/scons/usr/bin/
 	rm -f debian/scons/usr/bin/scons