Compiled Python 3.0 final and Python 2.6.1 on AIX 5.2 successfully
2009-01-09 23:55
417 查看
Today I compiled Python 3.0 final on AIX 5.2 after apply a small patch on multiprocessing.c and setup.py.
[Python 2.6.1] make test
......
11 tests failed:
test_cmath test_fileio test_httpservers test_io test_locale
test_mmap test_multiprocessing test_posix test_pty test_urllib2
test_wait4
41 tests skipped:
test_aepack test_al test_applesingle test_bsddb test_bsddb185
test_bsddb3 test_cd test_cl test_codecmaps_cn test_codecmaps_hk
test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw test_ctypes
test_curses test_dl test_epoll test_gdbm test_gl test_imgfile
test_kqueue test_largefile test_linuxaudiodev test_macos
test_macostools test_normalization test_ossaudiodev test_pep277
test_py3kwarn test_scriptpackages test_socketserver test_sqlite
test_ssl test_startfile test_sunaudiodev test_timeout
test_urllib2net test_urllibnet test_winreg test_winsound
test_zipfile64
3 skips unexpected on aix5:
test_ssl test_largefile test_ctypes
[Python 3.0 final] make test
......
286 tests OK.
10 tests failed:
test_binascii test_cmath test_fileio test_httpservers test_io
test_mmap test_multiprocessing test_posix test_pty test_wait4
25 tests skipped:
test_codecmaps_cn test_codecmaps_hk test_codecmaps_jp
test_codecmaps_kr test_codecmaps_tw test_ctypes test_curses
test_dbm_gnu test_epoll test_kqueue test_largefile test_nis
test_normalization test_ossaudiodev test_pep277 test_socketserver
test_sqlite test_startfile test_timeout test_urllib2net
test_urllibnet test_winreg test_winsound test_xmlrpc_net
test_zipfile64
3 skips unexpected on aix5:
test_curses test_largefile test_ctypes
# cat aix-patch
diff -Naur Python-2.6/Modules/_multiprocessing/multiprocessing.c Python-2.6-clean-patch/Modules/_multiprocessing/multiprocessing.c
--- Python-2.6/Modules/_multiprocessing/multiprocessing.c 2008-06-14 00:38:33.000000000 +0200
+++ Python-2.6-clean-patch/Modules/_multiprocessing/multiprocessing.c 2008-10-07 12:23:55.000000000 +0200
@@ -8,6 +8,13 @@
#include "multiprocessing.h"
+#ifndef CMSG_SPACE
+#define CMSG_SPACE(len) (_CMSG_ALIGN(sizeof(struct cmsghdr)) + _CMSG_ALIGN(len))
+#endif
+#ifndef CMSG_LEN
+#define CMSG_LEN(len) (_CMSG_ALIGN(sizeof(struct cmsghdr)) + (len))
+#endif
+
PyObject *create_win32_namespace(void);
PyObject *pickle_dumps, *pickle_loads, *pickle_protocol;
diff -Naur Python-2.6/setup.py Python-2.6-clean-patch/setup.py
--- Python-2.6/setup.py 2008-09-30 02:15:45.000000000 +0200
+++ Python-2.6-clean-patch/setup.py 2008-10-07 12:23:34.000000000 +0200
@@ -1277,6 +1277,14 @@
)
libraries = []
+ elif platform.startswith('aix'):
+ macros = dict(
+ HAVE_SEM_OPEN=1,
+ HAVE_SEM_TIMEDWAIT=0,
+ HAVE_FD_TRANSFER=1
+ )
+ libraries = ['rt']
+
else: # Linux and other unices
macros = dict(
HAVE_SEM_OPEN=1,
[Python 2.6.1] make test
......
11 tests failed:
test_cmath test_fileio test_httpservers test_io test_locale
test_mmap test_multiprocessing test_posix test_pty test_urllib2
test_wait4
41 tests skipped:
test_aepack test_al test_applesingle test_bsddb test_bsddb185
test_bsddb3 test_cd test_cl test_codecmaps_cn test_codecmaps_hk
test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw test_ctypes
test_curses test_dl test_epoll test_gdbm test_gl test_imgfile
test_kqueue test_largefile test_linuxaudiodev test_macos
test_macostools test_normalization test_ossaudiodev test_pep277
test_py3kwarn test_scriptpackages test_socketserver test_sqlite
test_ssl test_startfile test_sunaudiodev test_timeout
test_urllib2net test_urllibnet test_winreg test_winsound
test_zipfile64
3 skips unexpected on aix5:
test_ssl test_largefile test_ctypes
[Python 3.0 final] make test
......
286 tests OK.
10 tests failed:
test_binascii test_cmath test_fileio test_httpservers test_io
test_mmap test_multiprocessing test_posix test_pty test_wait4
25 tests skipped:
test_codecmaps_cn test_codecmaps_hk test_codecmaps_jp
test_codecmaps_kr test_codecmaps_tw test_ctypes test_curses
test_dbm_gnu test_epoll test_kqueue test_largefile test_nis
test_normalization test_ossaudiodev test_pep277 test_socketserver
test_sqlite test_startfile test_timeout test_urllib2net
test_urllibnet test_winreg test_winsound test_xmlrpc_net
test_zipfile64
3 skips unexpected on aix5:
test_curses test_largefile test_ctypes
# cat aix-patch
diff -Naur Python-2.6/Modules/_multiprocessing/multiprocessing.c Python-2.6-clean-patch/Modules/_multiprocessing/multiprocessing.c
--- Python-2.6/Modules/_multiprocessing/multiprocessing.c 2008-06-14 00:38:33.000000000 +0200
+++ Python-2.6-clean-patch/Modules/_multiprocessing/multiprocessing.c 2008-10-07 12:23:55.000000000 +0200
@@ -8,6 +8,13 @@
#include "multiprocessing.h"
+#ifndef CMSG_SPACE
+#define CMSG_SPACE(len) (_CMSG_ALIGN(sizeof(struct cmsghdr)) + _CMSG_ALIGN(len))
+#endif
+#ifndef CMSG_LEN
+#define CMSG_LEN(len) (_CMSG_ALIGN(sizeof(struct cmsghdr)) + (len))
+#endif
+
PyObject *create_win32_namespace(void);
PyObject *pickle_dumps, *pickle_loads, *pickle_protocol;
diff -Naur Python-2.6/setup.py Python-2.6-clean-patch/setup.py
--- Python-2.6/setup.py 2008-09-30 02:15:45.000000000 +0200
+++ Python-2.6-clean-patch/setup.py 2008-10-07 12:23:34.000000000 +0200
@@ -1277,6 +1277,14 @@
)
libraries = []
+ elif platform.startswith('aix'):
+ macros = dict(
+ HAVE_SEM_OPEN=1,
+ HAVE_SEM_TIMEDWAIT=0,
+ HAVE_FD_TRANSFER=1
+ )
+ libraries = ['rt']
+
else: # Linux and other unices
macros = dict(
HAVE_SEM_OPEN=1,
相关文章推荐
- How to Install OpenCV 3.0 and Python 3.4+ on Ubuntu
- Compiled Ruby 1.9.0 on AIX 5.3 successfully
- Install OpenCV 3.0 and Python 2.7+ on Ubuntu
- Compiled Python 2.5.2 on AIX 5.3
- caffe setup on ubuntu 15.04 with CPU and NO GPU and NO Python
- Tips on Hair and Final gathering
- 【廖雪峰python3.0】-课后习题:第2章:第一个python程序 and 第三章:python基础
- Python Intro - Compile and Install numpy library on Ubuntu
- WebLogic Server (WLS) Hangs With Deadlocked Socket Close() and Poll() Threads on AIX
- commands moudle on python will replace with subprocess on py3.0
- How to install python3 and set up a programming on server Ubutung16.04
- Python Editor and Debugger on Windows
- Install Rouge and Pyrouge for python 2.7 (conda virtual env) on Linux 64
- [Python] The get() method on Python dicts and its "default" arg
- Give a try to Python Flask and deploy it on VPS!
- Oracle 11g R2 GI and DB Installation on AIX 6.1L
- How to install Python 2.7 and Python 3.3 on CentOS 6
- A solution for conflict of structure loc_t in header files of vac compiler and informix esql on AIX
- Simple Tutorial on SVM and Parameter Tuning in Python and R
- Leetcode_max-points-on-a-line(c++ and python version)