This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[translation:ERROR] Error: | |
[translation:ERROR] Traceback (most recent call last): | |
[translation:ERROR] File "third_party/generic/pypy/pypy/translator/goal/translate.py", line 273, in main | |
[translation:ERROR] drv.proceed(goals) | |
[translation:ERROR] File "/Users/tav/work/third_party/generic/pypy/pypy/translator/driver.py", line 704, in proceed | |
[translation:ERROR] return self._execute(goals, task_skip = self._maybe_skip()) | |
[translation:ERROR] File "/Users/tav/work/third_party/generic/pypy/pypy/translator/tool/taskengine.py", line 116, in _execute | |
[translation:ERROR] res = self._do(goal, taskcallable, *args, **kwds) | |
[translation:ERROR] File "/Users/tav/work/third_party/generic/pypy/pypy/translator/driver.py", line 267, in _do | |
[translation:ERROR] res = func() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ make | |
gcc -O3 -fomit-frame-pointer -mmacosx-version-min=10.4 -o implement_10.o -c implement_10.c -I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -I/Users/tav/work/third_party/generic/pypy/pypy/translator/c -I/usr/include/ffi | |
implement_10.c: In function Ôpypy_g_ccall_pipe__arrayPtrÕ: | |
implement_10.c:64256: warning: passing argument 1 of ÔpipeÕ from incompatible pointer type | |
implement_10.c: In function Ôpypy_g_ccall_setpgrp__Signed_SignedÕ: | |
implement_10.c:64295: error: too many arguments to function ÔsetpgrpÕ | |
implement_10.c: In function Ôpypy_g_ccall_waitpid__Signed_arrayPtr_SignedÕ: | |
implement_10.c:129344: warning: passing argument 2 of ÔwaitpidÕ from incompatible pointer type | |
implement_10.c: In function Ôpypy_g_ccall_SSLv23_method___Õ: | |
implement_10.c:184970: warning: assignment from incompatible pointer type |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>Hello</h1> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "pyconfig.h" | |
/* using RefcountingGCTransformer */ | |
#define MALLOC_ZERO_FILLED 1 | |
#include <errno.h> | |
#include <dirent.h> | |
#include <sys/stat.h> | |
#include <sys/times.h> | |
#include <utime.h> | |
#include <sys/types.h> | |
#include <unistd.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "common_header.h" | |
/***********************************************************/ | |
/*** Structure definitions ***/ | |
struct pypy_ExcData0; | |
struct pypy__arrayitem_0; | |
struct pypy_array0; | |
struct pypy_array0_len18; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "common_header.h" | |
/***********************************************************/ | |
/*** Structure definitions ***/ | |
struct pypy_ExcData0; | |
struct pypy__arrayitem_0; | |
struct pypy_array0; | |
struct pypy_array0_len18; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <unistd.h> | |
#include <stdio.h> | |
#include <stddef.h> /* for offsetof() */ | |
void dump(char* key, int value) { | |
printf("%s: %d\n", key, value); | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/third_party/generic/pypy/pypy/rpython/module/ll_os.py b/third_party/generic/pypy/pypy/rpython/module/ll_os.py | |
index ebcccf7..b012128 100644 | |
--- a/third_party/generic/pypy/pypy/rpython/module/ll_os.py | |
+++ b/third_party/generic/pypy/pypy/rpython/module/ll_os.py | |
@@ -6,6 +6,9 @@ Low-level implementations for the external functions of the 'os' module. | |
# might be found in doc/rffi.txt | |
import os, sys, errno | |
+ | |
+from distutils.sysconfig import get_python_inc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/third_party/generic/pypy/pypy/rpython/module/ll_os.py b/third_party/generic/pypy/pypy/rpython/module/ll_os.py | |
index ebcccf7..e7d02a1 100644 | |
--- a/third_party/generic/pypy/pypy/rpython/module/ll_os.py | |
+++ b/third_party/generic/pypy/pypy/rpython/module/ll_os.py | |
@@ -88,10 +88,31 @@ class RegisterOs(BaseLazyRegistering): | |
def __init__(self): | |
self.configure(CConfig) | |
+ # on some platforms, e.g. OS X Leopard, the following constants which | |
+ # may be defined in pyconfig.h triggers "legacy" behaviour for functions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./py.test ../../pypy/rpython/module/test/test_*.py | |
inserting into sys.path: /Users/tav/work/third_party/generic/pypy | |
===================================================== test session starts ===================================================== | |
python: platform darwin -- Python 2.5.1 | |
using py lib: /Users/tav/work/third_party/generic/pypy/py <rev 64398> | |
test object 1: /Users/tav/work/third_party/generic/pypy/pypy/rpython/module/test/test_ll_os.py | |
test object 2: /Users/tav/work/third_party/generic/pypy/pypy/rpython/module/test/test_ll_os_environ.py | |
test object 3: /Users/tav/work/third_party/generic/pypy/pypy/rpython/module/test/test_ll_os_path.py | |
test object 4: /Users/tav/work/third_party/generic/pypy/pypy/rpython/module/test/test_ll_os_stat.py | |
test object 5: /Users/tav/work/third_party/generic/pypy/pypy/rpython/module/test/test_ll_strtod.py |