[pywin32-checkins] pywin32/Pythonwin/pywin/framework app.py,1.10,1.11
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2005-07-07 14:46:26
|
Update of /cvsroot/pywin32/pywin32/Pythonwin/pywin/framework In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12286/Pythonwin/pywin/framework Modified Files: app.py Log Message: * Write Lib\site-packages\pywin32.version.txt with setup.py's build_id * Pythonwin's Help->About reads this value * binary installer's title is now 'pywin32-2xx' - now fits on the screen! * directsound extension optional based on existance of dsound.h * Check MSVC dirs as well as SDK dirs for optional include files. Index: app.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/framework/app.py,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** app.py 11 Apr 2004 04:44:24 -0000 1.10 --- app.py 7 Jul 2005 14:46:17 -0000 1.11 *************** *** 332,339 **** self.SetDlgItemText(win32ui.IDC_EDIT1, text) # Get the build number - written by installers. ! # For distutils build, use the uninstall key. ! key_name = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion" \ ! "\\Uninstall\\pywin32-py%d.%d" % sys.version_info[:2] ! ver = _GetRegistryValue(key_name, "DisplayName") if ver is None: # See if we are Part of Active Python --- 332,343 ---- self.SetDlgItemText(win32ui.IDC_EDIT1, text) # Get the build number - written by installers. ! # For distutils build, read pywin32.version.txt ! import distutils.sysconfig ! site_packages = distutils.sysconfig.get_python_lib(plat_specific=1) ! try: ! build_no = open(os.path.join(site_packages, "pywin32.version.txt")).read().strip() ! ver = "pywin32 build %s" % build_no ! except EnvironmentError: ! ver = None if ver is None: # See if we are Part of Active Python |