| 1 | | [[TOC]] |
| 2 | | |
| 3 | | = PortLog: [wiki:dev-lang]/python = |
| 4 | | |
| 5 | | http://www.python.org/ |
| 6 | | |
| 7 | | == 2.5.x branch == |
| 8 | | |
| 9 | | ||R5||broken|| |
| 10 | | ||BONE||broken|| |
| 11 | | ||Haiku||unstable|| |
| 12 | | |
| 13 | | === work-in-progress (andreasf) - [R5, Haiku] === |
| 14 | | |
| 15 | | On both platforms, |
| 16 | | {{{ |
| 17 | | #!/usr/bin/env python |
| 18 | | }}} |
| 19 | | needs to be changed to |
| 20 | | {{{ |
| 21 | | #!/bin/env python |
| 22 | | }}} |
| 23 | | |
| 24 | | On '''R5''' I get: |
| 25 | | {{{ |
| 26 | | gcc -o python \ |
| 27 | | Modules/python.o \ |
| 28 | | libpython2.5.a -lnet |
| 29 | | libpython2.5.a: file not recognized: Is a directory |
| 30 | | collect2: ld returned 1 exit status |
| 31 | | make: *** [python] Error 1 |
| 32 | | }}} |
| 33 | | Apparently, it is using a {{{Modules/ar_beos}}} script to emulate {{{ar}}} by moving the files into a directory instead of an archive file. |
| 34 | | |
| 35 | | On '''Haiku''', requires another Python first. The BeOS {{{Python-2.4.2-x86.zip}}} seems to install okay. I then get: |
| 36 | | {{{ |
| 37 | | /ToBe/python-2.5.x/Objects/funcobject.c: In function `function_call': |
| 38 | | /ToBe/python-2.5.x/Objects/funcobject.c:501: parse error before `;' |
| 39 | | }}} |
| 40 | | This seems related to Haiku's definition of the {{{assert}}} macro in the {{{NDEBUG}}} case. [http://dev.haiku-os.org/ticket/2108 Ticket] |
| 41 | | |
| 42 | | In {{{Python/thread.c}}} compilation fails due to {{{destructor}}} in {{{pthread.h}}}:175. Renaming the parameter resolves this ([http://dev.haiku-os.org/ticket/2109 ticket]). |
| 43 | | |
| 44 | | Linking then fails due to {{{-lm}}}. Seems I forgot to rework {{{configure.in}}}. |
| 45 | | |
| 46 | | Now lots of {{{PyThread_}}}* undefined references. I unconditionally enabled the BeOS threads implementation. |
| 47 | | |
| 48 | | Python's libffi needs to be patched too (config.guess, config.sub, configure.ac). |
| 49 | | |
| 50 | | Compiles okay then. |
| 51 | | |
| 52 | | {{{make test}}} fails due to {{{-lm}}}. This seemed to originate from {{{setup.py}}}. Some modules silently failed to build, applied quickfixes for some of them. |
| 53 | | |
| 54 | | [source:BePorts/trunk/dev-lang/python/python-2.5.x.diff Patch] |
| 55 | | |
| 56 | | ''Note: some modules may need to added to the {{{Setup}}} file manually, e.g. {{{bz2}}}.'' |
| 57 | | |