@@ -375,15 +375,47 @@ BeOS: Chris Herborth (chrish@qnx.com) writes:
375375 BeOS R3 or later. Note that only the PowerPC platform is
376376 supported for R3; both PowerPC and x86 are supported for R4.
377377
378- Cray T3E: Konrad Hinsen writes:
379- 1) Don't use gcc. It compiles Python/graminit.c into something
380- that the Cray assembler doesn't like. Cray's cc seems to work
381- fine.
382- 2) Comment out modules md5 (won't compile) and audioop (will
383- crash the interpreter during the test suite).
384- If you run the test suite, two tests will fail (rotate and
385- binascii), but these are not the modules you'd expect to need
386- on a Cray.
378+ Cray T3E: Mark Hadfield (m.hadfield@niwa.co.nz) writes:
379+ Python can be built satisfactorily on a Cray T3E but based on
380+ my experience with the NIWA T3E (2002-05-22, version 2.2.1)
381+ there are a few bugs and gotchas. For more information see a
382+ thread on comp.lang.python in May 2002 entitled "Building
383+ Python on Cray T3E".
384+
385+ 1) Use Cray's cc and not gcc. The latter was reported not to
386+ work by Konrad Hinsen. It may work now, but it may not.
387+
388+ 2) To set sys.platform to something sensible, pass the
389+ following environment variable to the configure script:
390+
391+ MACHDEP=unicosmk
392+
393+ 2) Run configure with option "--enable-unicode=ucs4".
394+
395+ 3) The Cray T3E does not support dynamic linking, so extension
396+ modules have to be built by adding (or uncommenting) lines
397+ in Modules/Setup. The minimum set of modules is
398+
399+ posix, new, _sre, unicodedata
400+
401+ On NIWA's vanilla T3E system the following have also been
402+ included successfully:
403+
404+ _codecs, _locale, _socket, _symtable, _testcapi, _weakref
405+ array, binascii, cmath, cPickle, crypt, cStringIO, dbm
406+ errno, fcntl, grp, math, md5, operator, parser, pcre, pwd
407+ regex, rotor, select, struct, strop, syslog, termios
408+ time, timing, xreadlines
409+
410+ 4) Once the python executable and library have been built, make
411+ will execute setup.py, which will attempt to build remaining
412+ extensions and link them dynamically. Each of these attempts
413+ will fail but should not halt the make process. This is
414+ normal.
415+
416+ 5) Running "make test" uses a lot of resources and causes
417+ problems on our system. You might want to try running tests
418+ singly or in small groups.
387419
388420SGI: SGI's standard "make" utility (/bin/make or /usr/bin/make)
389421 does not check whether a command actually changed the file it
0 commit comments