[Python-checkins] python/dist/src/Lib/distutils/command install_lib.py, 1.44, 1.45

lemburg at users.sourceforge.net lemburg at users.sourceforge.net
Thu Dec 2 21:14:19 CET 2004


Update of /cvsroot/python/python/dist/src/Lib/distutils/command
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20925/Lib/distutils/command

Modified Files:
	install_lib.py 
Log Message:
Restore Python 2.1 compatibility (os.extsep was introduced in Python 2.2).



Index: install_lib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/command/install_lib.py,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -d -r1.44 -r1.45
--- install_lib.py	10 Nov 2004 22:23:15 -0000	1.44
+++ install_lib.py	2 Dec 2004 20:14:16 -0000	1.45
@@ -9,8 +9,10 @@
 
 
 # Extension for Python source files.
-PYTHON_SOURCE_EXTENSION = os.extsep + "py"
-
+if hasattr(os, 'extsep'):
+    PYTHON_SOURCE_EXTENSION = os.extsep + "py"
+else:
+    PYTHON_SOURCE_EXTENSION = ".py"
 
 class install_lib (Command):
 



More information about the Python-checkins mailing list