[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[minion-cvs] Backport the textwrap module from the 2.3 python distri...
Update of /home/minion/cvsroot/src/minion
In directory moria.mit.edu:/tmp/cvs-serv12522
Modified Files:
Makefile setup.py
Log Message:
Backport the textwrap module from the 2.3 python distribution for use in formatting boilerplate.
Index: Makefile
===================================================================
RCS file: /home/minion/cvsroot/src/minion/Makefile,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- Makefile 16 Dec 2002 02:57:03 -0000 1.18
+++ Makefile 16 Dec 2002 19:17:46 -0000 1.19
@@ -58,6 +58,7 @@
$$PYTHON setup.py clean
rm -rf build dist
rm -f lib/mixminion/_unittest.py
+ rm -f lib/mixminion/_textwrap.py
rm -f lib/mixminion/*.pyc
rm -f lib/mixminion/*.pyo
find . -name '*~' -print0 |xargs -0 rm -f
Index: setup.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/setup.py,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- setup.py 16 Dec 2002 02:40:11 -0000 1.15
+++ setup.py 16 Dec 2002 19:17:46 -0000 1.16
@@ -45,6 +45,12 @@
except:
shutil.copy("contrib/unittest.py", "lib/mixminion/_unittest.py")
+# Install textwrap if python doesn't provide it. (This goes for all python<2.3)
+try:
+ import textwrap
+except:
+ shutil.copy("contrib/textwrap.py", "lib/mixminion/_textwrap.py")
+
#======================================================================
# Detect endian-ness