Staging
v0.5.1
https://github.com/python/cpython
Revision f725bdb5c704e07578c7bbdd4c853f1e07fd3d16 authored by Thomas Heller on 25 January 2005, 20:46:48 UTC, committed by Thomas Heller on 25 January 2005, 20:46:48 UTC
for Python 2.4 caused a segfault when post_install_script was used.

The reason was that the file handle passed to PyRun_SimpleFile() was
created with MSVCRT.DLL, but Python 2.4 uses MSVCR71.DLL.

So, I replaced PyRun_SimpleFile() with PyRun_SimpleString().  The
segfault is gone, but the output of the postinstall script doesn't
show up, because still freopen() from MSVCRT is used.

(I would be very gratefull if someone proofreads the patch, at least).
1 parent cf5d664
Raw File
Tip revision: f725bdb5c704e07578c7bbdd4c853f1e07fd3d16 authored by Thomas Heller on 25 January 2005, 20:46:48 UTC
Running a bdist_wininst installer, built with Python 2.3, installing
Tip revision: f725bdb
BeOS-NOTES
Python for BeOS R5

In Python-2.1, the standard version of the new setup.py program
will not build the full complement of modules on BeOS.  Instead,
please replace it with the special BeOS version in Misc/BeOS-setup.py.

To build,

   1)  cp Misc/BeOS-setup.py setup.py
   2)  ./configure --prefix=/boot/home/config
   3)  make

The modules will all build, except termios which assumes some flags
we don't have.  Put a libreadline.a in /boot/home/config/lib to get
a readline.so for your interactive editing convenience;  NB, not
libreadline.so, you want to link a static readline library into the
dynamically loaded Python module.

Test:

   make test

   The BeOS is Not UNIX category:
 - test_select crashed -- select.error : (-2147459072, 'Bad file descriptor')
 - test_socket crashed -- exceptions.AttributeError : SOCK_RAW
 - test_fcntl crashed -- exceptions.IOError: [Errno -2147483643] Invalid argument

   This one is funny!  BeOS does support large files, and that's why
       we get this error:  the file is too big for my filesystem!
 - test_largefile crashed -- exceptions.IOError: [Errno -2147459065]
       No space left on device

 - test_pickle crashed.  This is apparently a serious problem, "complex"
       number objects reconstructed from a pickle don't compare equal to
       their ancestors.  But it happens on BeOS PPC only, not Intel.

Install:

   make install


- Donn Cave (donn@oz.net)
  October 4, 2000
back to top