diff options
| author | Wang Mingyu <wangmy@fujitsu.com> | 2022-12-30 12:56:49 +0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2023-01-06 11:38:16 -0800 |
| commit | 4259c41cc40a8f7ffa4a6d8b2f4b8155ee230acb (patch) | |
| tree | 63bb15cbf622380389145989dec4bc01b24458c4 /meta-python/recipes-extended/python-pyephem/python3-pyephem/0001-Don-t-set-tp_print-on-Python-3.patch | |
| parent | 5ded36bc807fb59e47cfe10c46c52f812c514b9a (diff) | |
| download | meta-openembedded-4259c41cc40a8f7ffa4a6d8b2f4b8155ee230acb.tar.gz | |
python3-pyephem: upgrade 4.1.3 -> 4.1.4
0001-Don-t-set-tp_print-on-Python-3.patch
removed since it's included in 4.1.4
Changelog:
==========
In previous versions, if you asked for the position of a body (a) whose
elliptical or hyperbolic orbit has an eccentricity very close to 1.0 and (b)
which is very far from perihelion, then the underlying C library would print
a warning Near-parabolic orbit: inaccurate result but let your Python script
continue on unawares. Now, no message is printed directly to the screen, and
instead a RuntimeError will tell you why PyEphem can't compute the body's
position.
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-extended/python-pyephem/python3-pyephem/0001-Don-t-set-tp_print-on-Python-3.patch')
| -rw-r--r-- | meta-python/recipes-extended/python-pyephem/python3-pyephem/0001-Don-t-set-tp_print-on-Python-3.patch | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/meta-python/recipes-extended/python-pyephem/python3-pyephem/0001-Don-t-set-tp_print-on-Python-3.patch b/meta-python/recipes-extended/python-pyephem/python3-pyephem/0001-Don-t-set-tp_print-on-Python-3.patch deleted file mode 100644 index a84d852fb0..0000000000 --- a/meta-python/recipes-extended/python-pyephem/python3-pyephem/0001-Don-t-set-tp_print-on-Python-3.patch +++ /dev/null | |||
| @@ -1,44 +0,0 @@ | |||
| 1 | From 866f7560034e8b7a604432611b3cb2c92e76def9 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Sun, 28 Aug 2022 11:03:39 -0700 | ||
| 4 | Subject: [PATCH] Don't set tp_print on Python 3. | ||
| 5 | |||
| 6 | In 3.8 it produces a compilation warning, in earlier versions it is ignored. | ||
| 7 | |||
| 8 | Upstream-Status: Submitted [https://github.com/brandon-rhodes/pyephem/pull/245] | ||
| 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 10 | --- | ||
| 11 | extensions/_libastro.c | 8 ++++++++ | ||
| 12 | 1 file changed, 8 insertions(+) | ||
| 13 | |||
| 14 | diff --git a/extensions/_libastro.c b/extensions/_libastro.c | ||
| 15 | index ce07d93..c9ef1e6 100644 | ||
| 16 | --- a/extensions/_libastro.c | ||
| 17 | +++ b/extensions/_libastro.c | ||
| 18 | @@ -372,7 +372,11 @@ static PyTypeObject AngleType = { | ||
| 19 | sizeof(AngleObject), | ||
| 20 | 0, | ||
| 21 | 0, /* tp_dealloc */ | ||
| 22 | +#if PY_MAJOR_VERSION < 3 | ||
| 23 | Angle_print, /* tp_print */ | ||
| 24 | +#else | ||
| 25 | + 0, /* reserved in 3.x */ | ||
| 26 | +#endif | ||
| 27 | 0, /* tp_getattr */ | ||
| 28 | 0, /* tp_setattr */ | ||
| 29 | 0, /* tp_compare */ | ||
| 30 | @@ -669,7 +673,11 @@ static PyTypeObject DateType = { | ||
| 31 | sizeof(PyFloatObject), | ||
| 32 | 0, | ||
| 33 | 0, /* tp_dealloc */ | ||
| 34 | +#if PY_MAJOR_VERSION < 3 | ||
| 35 | Date_print, /* tp_print */ | ||
| 36 | +#else | ||
| 37 | + 0, /* tp_print slot is reserved and unused in Python 3 */ | ||
| 38 | +#endif | ||
| 39 | 0, /* tp_getattr */ | ||
| 40 | 0, /* tp_setattr */ | ||
| 41 | 0, /* tp_compare */ | ||
| 42 | -- | ||
| 43 | 2.37.2 | ||
| 44 | |||
