[PyOpenGL-Users] version file confuses McMillan Installer
Brought to you by:
mcfletch
|
From: Michael K. <mi...@kr...> - 2004-08-06 09:22:47
|
Reading the PyOpenGL version number from a file named 'version' in OpenGL/__init__.py as follows breaks down with the McMillan Installer:
filename = os.path.join(os.path.dirname(__file__), 'version')
__version__ = string.strip(open(filename).read())
File "E:\mkrause\Python\AerialTiler\distBuilder\buildAerialTiler\out1.pyz/OpenGL", line 18, in ?
File "E:\mkrause\Python\AerialTiler\distBuilder\buildAerialTiler\out1.pyz/OpenGL", line 14, in __set_attributes
IOError: [Errno 2] No such file or directory: 'E:\\mkrause\\Python\\AerialTiler\\distBuilder\\buildAerialTiler\\out1.pyz\\version'
RC: -1 from AerialTiler_main
OK.
One can easily kludge around by catching the IOError and setting the current version as a constant string.
I would hope for a less clever way to determine the current version.
Maybe using version.py with a content of
version = "2.0.1.08"
can serve the build scripts, runtime and packaging with the McMillan Installer.
Regards,
Michael
--
- Michael Krause
- http://www.krause-software.de
- mi...@kr...
|