Closed david-r-cox closed 1 year ago
@yuce, could you please merge this one. It could also be done a bit simpler, e.g.,
if _lib.PL_version_info != None:
PL_version = _lib.PL_version_info
else:
PL_version = _lib.PL_version
Both will run on older versions as well as on the latest stable and dev versions.
@david-r-cox Would it be possible for you to incorporate @JanWielemaker 's suggestion?
@yuce I've added @JanWielemaker's suggested changes and tested them against swipl-devel V9.1.2 (see this Dockerfile).
Let me know if any further changes are required.
@david-r-cox Thanks for the update! Could you also add your name to CONTRIBUTORS.txt
?
Thanks for your contribution!
PL_version
was renamed toPL_version_info
in SWI-Prolog due to Exported symbol PL_version conflicts with symbol in Perl.I noticed that this change resulted in a crash in PySwip, and opened swipl-devel #910.
After reviewing the notes added to that issue by @dgelessus, I decided to open this PR with a fix.