mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:17:45 +00:00
Ports: Add initial Python 3.6 port
This port is experimental and not all pythom modules are working. But this is an initial shot which can be further worked on, as SerenityOS gets more mature. :^) The main limitation is that locales, threading and time related functions are not working.
This commit is contained in:
parent
e7affa24dc
commit
71823a6c49
8 changed files with 2349 additions and 0 deletions
26
Ports/python-3.6/patches/0004-Remove-wrong-ifdef.patch
Normal file
26
Ports/python-3.6/patches/0004-Remove-wrong-ifdef.patch
Normal file
|
@ -0,0 +1,26 @@
|
|||
diff --git a/Python/pytime.c b/Python/pytime.c
|
||||
index 07335d4..50d676a 100644
|
||||
--- a/Python/pytime.c
|
||||
+++ b/Python/pytime.c
|
||||
@@ -225,7 +225,7 @@ _PyTime_FromNanoseconds(long long ns)
|
||||
return t;
|
||||
}
|
||||
|
||||
-#ifdef HAVE_CLOCK_GETTIME
|
||||
+
|
||||
static int
|
||||
_PyTime_FromTimespec(_PyTime_t *tp, struct timespec *ts, int raise)
|
||||
{
|
||||
@@ -247,7 +247,8 @@ _PyTime_FromTimespec(_PyTime_t *tp, struct timespec *ts, int raise)
|
||||
*tp = t;
|
||||
return res;
|
||||
}
|
||||
-#elif !defined(MS_WINDOWS)
|
||||
+
|
||||
+#if !defined(MS_WINDOWS)
|
||||
static int
|
||||
_PyTime_FromTimeval(_PyTime_t *tp, struct timeval *tv, int raise)
|
||||
{
|
||||
--
|
||||
2.17.1
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue