Menu

#18 version file confuses McMillan Installer

v2.0
open
nobody
GL (5)
5
2004-08-06
2004-08-06
No

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\buildAerialTil
er\out1.pyz/OpenGL", line 18, in ?
File "E:
\mkrause\Python\AerialTiler\distBuilder\buildAerialTil
er\out1.pyz/OpenGL", line 14, in __set_attributes
IOError: [Errno 2] No such file or directory: 'E:
\\mkrause\\Python\\AerialTiler\\distBuilder\\buildAeri
alTiler\\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

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.