[pywin32-checkins] pywin32 setup.py,1.116,1.117
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2011-01-09 00:30:59
|
Update of /cvsroot/pywin32/pywin32 In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv29432 Modified Files: setup.py Log Message: use tempfile module to locate temp dir Index: setup.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/setup.py,v retrieving revision 1.116 retrieving revision 1.117 diff -C2 -d -r1.116 -r1.117 *** setup.py 18 Nov 2010 04:21:43 -0000 1.116 --- setup.py 9 Jan 2011 00:30:51 -0000 1.117 *************** *** 74,77 **** --- 74,78 ---- import types, glob import re + from tempfile import gettempdir is_py3k = sys.version_info > (3,) # get this out of the way early on... *************** *** 610,614 **** build.run(self) # write a pywin32.version.txt. ! ver_fname = os.path.join(os.environ['temp'], "pywin32.version.txt") try: f = open(ver_fname, "w") --- 611,615 ---- build.run(self) # write a pywin32.version.txt. ! ver_fname = os.path.join(gettempdir(), "pywin32.version.txt") try: f = open(ver_fname, "w") *************** *** 2115,2119 **** py_modules = py_modules, ! data_files=[('', (os.path.join(os.environ['temp'],'pywin32.version.txt'),))] + convert_optional_data_files([ 'PyWin32.chm', --- 2116,2120 ---- py_modules = py_modules, ! data_files=[('', (os.path.join(gettempdir(),'pywin32.version.txt'),))] + convert_optional_data_files([ 'PyWin32.chm', |