[texworks] where does python27.dll come from?

Stefan Löffler st.loeffler at gmail.com
Tue Jun 21 08:19:34 CEST 2011


Hi,

On 2011-06-14 11:29, T T wrote:
> On 12 June 2011 15:06, Stefan Löffler <st.loeffler at gmail.com> wrote:
>> Thanks for testing and reporting. As pointed out in the thread, the Lib
>> folder is indeed still necessary (it seems it picked up a different Lib
>> folder on my machine - one shouldn't mix different python installs ;)).
>> Anyway, using the one from the older releases is not ideal, as they were
>> taken from the MSVC build. Therefore, they might depend on libraries
>> etc. and might even be incompatible with the built-in mingw library.
> Are you sure?

No ;).

> I thought all those .pyc files under Lib are platform
> independent, which seems to be even stated in the python docs:
>
> http://docs.python.org/tutorial/modules.html#compiled-python-files
>
> (I ask because in TeX Live these files are currently in the common
> part of the package, not in the platform specific one.)

Indeed, this should be fine. What I was worried about was the fact that
the .pyc were produced independently from the python library used (I'm
not even sure if they used the same (minor) version). E.g., the .pyc
originated from a MSVC build, whereas the library is MinGW. Plus, the
MinGW library uses some (customized) statically included modules, and
I'm not sure if that would have interfered with the dll. But again, I
have neither tested this extensively, nor am I an expert of Python's
internals. The fact that the old Lib folder worked suggests that it
doesn't matter that much.

Anyway, the recent upload (0.5 r846) uses the new build system, with the
.pyc generated by the same python from which the library built into Tw
was derived, so things should be safer now.

Note, though, that I had to patch the sysconfig package to not assume a
full posix build (otherwise, things like the Makefile or some headers
would be required). I'm attaching the patch in case it matters to you.
It's Windows-only, however, so it shouldn't interfere with other platforms.

HTH
Stefan

PS: How about the schedule for the release? If the line-mangling issue
is finally fixed now, I'll release Tw 0.4.2 soon (waiting for
confirmation ATM). But if not, do you suggest releasing another version
without that issue fixed by any particular date?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: python-sysconfig-win.patch
Type: text/x-patch
Size: 613 bytes
Desc: not available
URL: <http://tug.org/pipermail/texworks/attachments/20110621/d0fda223/attachment-0001.bin>


More information about the texworks mailing list