Use py_resource module
[python/dscho.git] / Misc / AIX-NOTES
blob97c09449dd40573e3a8009045286e84978b8737d
1 [Excerpt from an email describing how to build Python on AIX.]
4 Subject: Re: Python 1.0.0 BETA 5 -- also for Macintosh!
5 From: se@MI.Uni-Koeln.DE (Stefan Esser)
6 To: Guido.van.Rossum@cwi.nl
7 Date: Fri, 7 Jan 1994 17:40:43 +0100
9 [...]
11 The following are [...] Instructions
12 to get a clean compile using gcc and xlc
13 under AIX 3.2.4.
15 Since I wanted to make sure that Python compiles
16 using both compilers and several sets of options
17 (ANSI and traditional C, optimize on/off) I didn't
18 try to include bash readline or other optional 
19 modules.
21 'make test' succeeded using Python compiled with 
22 the AIX C-compiler invoked as 'cc' and with options 
23 '-o -qMEMMAX=4000' and compiled with 'gcc' and 
24 options '-O -Wall'.
26 There were some problems trying to compile python
27 using 'gcc -ansi' (because of _AIX no longer being
28 defined), but I didn't have time to look into this.
32 Regards,
34 Stefan Esser
39 REQUIRED:
40 ---------
42 1) AIX compilers don't like the LANG env
43    varaiable set to european locales.
44    This makes the compiler generate floating
45    point constants using "," as the decimal 
46    seperator, which the assembler doesnt't 
47    understand (or was it the other way around,
48    with the assembler expecting "," in float
49    numbers ???).
50    Anyway: "LANG=C; export LANG" solves the 
51    problem, as does "LANG=C $(MAKE) ..." in 
52    the master Makefile.
54 OPTIONAL:
55 ---------
57 2) The xlc compiler considers "Python/ceval.c"
58    too complex to optimize, except when invoked
59    with "-qMEMMAX=4000". 
61 [...]