[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[minion-cvs] Install a little better without write permissions to ./...



Update of /home/minion/cvsroot/src/minion
In directory moria.mit.edu:/tmp/cvs-serv26456

Modified Files:
	setup.py 
Log Message:
Install a little better without write permissions to ./lib

Index: setup.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/setup.py,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- setup.py	13 Feb 2003 17:22:58 -0000	1.45
+++ setup.py	13 Feb 2003 23:10:25 -0000	1.46
@@ -153,18 +153,21 @@
 try:
     import unittest
 except:
-    shutil.copy("contrib/unittest.py", "lib/mixminion/_unittest.py")
+    if not os.path.exists("lib/mixminion/_unittest.py"):
+        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")
+    if not os.path.exists("lib/mixminion/_textwrap.py"):
+        shutil.copy("contrib/textwrap.py", "lib/mixminion/_textwrap.py")
 
 # If we have a version of Python older than 2.2, we can't do bounded-space
 # decompression without magic.  That magic is written by Zooko.
 if sys.version_info[:3] < (2,2,0):
-    shutil.copy("contrib/zlibutil.py", "lib/mixminion/_zlibutil.py")
+    if not os.path.exists("lib/mixminion/_zlibutil.py"):
+        shutil.copy("contrib/zlibutil.py", "lib/mixminion/_zlibutil.py")
 
 #======================================================================
 # Detect endian-ness