FS#54742 - [geany-plugins] add python2 "geanypy" plugin
Attached to Project:
Community Packages
Opened by David McInnis (daavve) - Saturday, 08 July 2017, 23:15 GMT
Last edited by Alexander F. Rødseth (xyproto) - Wednesday, 19 July 2017, 12:48 GMT
Opened by David McInnis (daavve) - Saturday, 08 July 2017, 23:15 GMT
Last edited by Alexander F. Rødseth (xyproto) - Wednesday, 19 July 2017, 12:48 GMT
|
Details
Description:
The .configure script in geanypy-plugins uses the PYTHON environtment variable for finding the python2 binary, library, and header files. With the PYTHON variable unset the resulting makefiles use python3 in Makefile and header generation. This causes problems building the geanypy plugin because geanypy is python2 all makefiles need to point to python2 components, not python3 Additional info: * community/geany-plugins 1.30-1 Steps to reproduce: install geany Download PKGBUILD for geany-plugins-1.30-1 use makepkg script You will probably get something like the following: make[3]: Entering directory '/home/dave/projects/geany-plugins/pkg/src/geany-plugins-1.30/geanypy/src' CC geanypy_la-geanypy-app.lo CC geanypy_la-geanypy-dialogs.lo CC geanypy_la-geanypy-document.lo CC geanypy_la-geanypy-editor.lo geanypy-app.c: In function ‘App_dealloc’: geanypy-app.c:18:8: error: ‘App {aka struct <anonymous>}’ has no member named ‘ob_type’; did you mean ‘ob_base’? self->ob_type->tp_free((PyObject *) self); This error results from geanypy.h, including <Python.h> instead of <python2.7/Python.h> How to fix: Add this change to the PKGBUILD Script ---------------------------------------------------------------------------------------- 2a3 > # Contributor: David McInnis <dave@dave3.xyz> 23,24c24,25 < < ./configure --prefix=/usr --libexecdir=/usr/lib --- > > PYTHON=/usr/bin/python2 ./configure --prefix=/usr --libexecdir=/usr/lib ---------------------------------------------------------------------------------------- |
This task depends upon
Closed by Alexander F. Rødseth (xyproto)
Wednesday, 19 July 2017, 12:48 GMT
Reason for closing: Fixed
Additional comments about closing: The updated package will appear shortly in [community].
Wednesday, 19 July 2017, 12:48 GMT
Reason for closing: Fixed
Additional comments about closing: The updated package will appear shortly in [community].
I think the most natural place for Python 3 Geanypy plugin is upstream:
https://github.com/geany/geany-plugins/
I'm almost certain this requires writing a new Plugin for Python3. It doesn't sound too hard, I'll take a look at it.
-Dave
If there is support for Python 3 in the future, please contact me (or re-open this bug report) and I'll try to add that plugin instead.