[python-win32] Getting pywin32 build number
Luc Saffre
luc.saffre at gmx.net
Fri May 26 01:12:01 CEST 2006
On 25.05.2006 15:32, Mark Hammond wrote:
> I'm open to patches that meet this compromise...
I am just thinking aloud...
mkdir win32
echo '__version__="209"' > win32/__init__.py
echo 'File win32/__init__.py contains the version number' \
> pywin32.version.txt
Afterwards it isn't even necessary afaics to add to each __init__.py a
line "from win32 import __version__". I'd rather consider moving most
win32xxx packages to win32.xxx. For backward compatibility you would
need a win32xxx package that does something like "from win32.xxx import
*" (this wouldn't work in fact, but maybe there is a solution for this).
Because the reason why you have a problem with versioning at all is that
you have no top-level module. (Again, I am just thinking aloud.)
Luc
More information about the Python-win32
mailing list