[sword-devel] [PATCH] Migrate Python bindings installation script from distutils to setuptools, attempt 2

Aaron Rainbolt arraybolt3 at gmail.com
Mon Oct 2 22:29:45 EDT 2023


Apologies for my initial failed attempt, I made a number of blunders in 
my first patch.

This second patch:

* Only modifies the CMake build system (the previous changes to 
Autotools was the result of me patching more than was necessary)
* Uses correct indentation (I had spaces and tabs confused before, now 
I'm using tabs correctly)
* Successfully applies against the head of SVN and against the 1.9.0 tarball
* Successfully builds against the 1.9.0 tarball (I haven't tried 
building SVN with this yet)
* Switches the Python setup script embedded in the CMake system from 
using distutils to using setuptools
* Adds a SWORD_PYTHON_INSTALL_ROOT build option for allowing the Python 
bindings to be installed without building a Python egg (works around 
https://github.com/pypa/setuptools/issues/3143)
* Has the patch as an attachment since it appears either GMail or 
Thunderbird potentially mangled my patch last time

As before, everything in the patch is made available under GPLv2.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pyfix.patch
Type: text/x-patch
Size: 986 bytes
Desc: not available
URL: <http://crosswire.org/pipermail/sword-devel/attachments/20231002/63a1b333/attachment.bin>


More information about the sword-devel mailing list