[PATCH] Work around bug in Python 2.2 distutils

Nathaniel Smith njs at pobox.com
Thu May 6 06:17:17 UTC 2004


Prior to version 2.3, the distutils shipped with python does not set
the executable bit on build scripts.  This causes problems with the
previous patch; "make check" no longer works under Python 2.2.

Here we add a klugy little workaround that should hold until we
eventually drop 2.2 support...

-- Nathaniel

-- 
Details are all that matters; God dwells there, and you never get to
see Him if you don't struggle to get them right. -- Stephen Jay Gould
-------------- next part --------------
? results.qmr
? qm/external/__init__.pyc
? qm/external/__init__.pyo
? qmdist/command/bdist_wininst.py
? tests/regress/QMTest/regression_database.pyc
? tests/regress/QMTest/selftest.pyc
? tests/regress/tuple1/QMTest/tuple_test.pyc
? tests/results_files/QMTest/results_file_database.pyc
? tests/results_files/QMTest/results_file_test.pyc
Index: ChangeLog
===================================================================
RCS file: /home/qm/Repository/qm/ChangeLog,v
retrieving revision 1.617
diff -u -r1.617 ChangeLog
--- ChangeLog	6 May 2004 00:35:34 -0000	1.617
+++ ChangeLog	6 May 2004 06:12:51 -0000
@@ -1,3 +1,8 @@
+2004-05-05  Nathaniel Smith  <njs at codesourcery.com>
+
+	* GNUmakefile.in (build): Force executable bit on scripts in
+	build directory.
+
 2004-05-04  Nathaniel Smith  <njs at codesourcery.com>
 
 	* setup.py: Import 'Extension'.
Index: GNUmakefile.in
===================================================================
RCS file: /home/qm/Repository/qm/GNUmakefile.in,v
retrieving revision 1.35
diff -u -r1.35 GNUmakefile.in
--- GNUmakefile.in	6 May 2004 00:35:35 -0000	1.35
+++ GNUmakefile.in	6 May 2004 06:12:51 -0000
@@ -59,6 +59,9 @@
 
 build:
 	$(PYTHON) ./setup.py build
+# The distutils shipped with Python versions prior to 2.3
+# buggily does not make these executable.
+	chmod 755 build/scripts-*/*
 
 doc:
 	$(PYTHON) ./setup.py build_doc


More information about the qmtest mailing list