ports/astro/py-ephem/files/patch-extensions___libastro.c
Rainer Hurling dfc7f8bbc1 astro/py-ephem: Update to 4.0.0.1
Major release update with many bugfixes, enhancements and
some new features [1]

[1] https://github.com/brandon-rhodes/pyephem/compare/v3.7.7.1...4.0.0

- Upgrade project to MIT license
- Use Python>=3.7, because of UnicodeDecodeError in ascii.py
- Generalize post-install target
- Removed now unneeded files/patch-setup.py
- Patch deprecated functions in test_satellity.py and _libastro.c

All 160 tests run ok.

Reported by:	Repology
2021-06-13 18:52:36 +02:00

9 lines
205 B
C

--- extensions/_libastro.c.orig 2021-06-12 19:13:26 UTC
+++ extensions/_libastro.c
@@ -1,5 +1,6 @@
/* Python header files. */
+#define PY_SSIZE_T_CLEAN
#include "Python.h"
#if PY_MAJOR_VERSION == 2