Message48869
I have used the Python 2.4.2 source to create a static
linkable version under windows (.lib). The executables
using that library fail to find the registry path of an
already existing Python 2.4 installation.
I have traced this down to the PC/dl_nt.c file, where
the variable PyWin_DLLVersionString is defined, but not
initialized, execpt if the DllMain function is called.
That function is only called by a process loading a
DLL, this is not the case with an static linked library.
I have used a preprocessor check against
Py_NO_ENABLE_SHARED to create a modified version of
dl_nt.c that will initialize the variable and remove
the DLLMain function from the static version (and keep
the original code when making a shared DLL)
With this minimal modification "import site" works as
usual even in an static linked version.
For your convenience the modified file can be found in
the attachement.
|
|
Date |
User |
Action |
Args |
2007-08-23 15:44:14 | admin | link | issue1327594 messages |
2007-08-23 15:44:14 | admin | create | |
|