Migrate to Python 3

Bug #1842509 reported by أحمد المحمودي (Ahmed El-Mahmoudy)
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gEDA
In Progress
Undecided
Unassigned

Bug Description

The attached script migrates a couple of scripts under utils/scripts to Python 3

Revision history for this message
أحمد المحمودي (Ahmed El-Mahmoudy) (aelmahmoudy) wrote :
Revision history for this message
أحمد المحمودي (Ahmed El-Mahmoudy) (aelmahmoudy) wrote :

xorn in geda 1.10 doesn't build with Python3. Please note that Python2 will reach end-of-life by the end of this year. It will be removed from Debian's nest release.

Revision history for this message
Roland Lutz (rlutz) wrote :

The Python extension modules xorn.storage and xorn.guile are specific to Python 2. Instead of making them specific to Python 3, I'd prefer to re-write them in a way that is independent of the Python interpreter used.

I have so far ported xorn.storage to cffi, which makes it a pure Python module. Now I'll have to tweak it until all tests pass and then port xorn.guile.

Changed in geda:
status: New → In Progress
Revision history for this message
Ralph (rlphl) wrote :

How is progress with this?

I'm writing a python3 script to process some gschem schematics. What options do I have today?

(The task I am working on today, I only need to parse a single gschem file & don't need to analyse the connectivity, so not to hard to write myself if I need to.)

Revision history for this message
Roland Lutz (rlutz) wrote : Re: [Bug 1842509] Re: Migrate to Python 3

On Thu, 1 Apr 2021, Ralph wrote:
> I'm writing a python3 script to process some gschem schematics.
> What options do I have today?

Making this functionality available to Python 3 isn't a high priority
because, as you said, this can easily be done in a script.

For Python 2, it is documented here:
http://wiki.geda-project.org/geda:xorn_getting_started#using_xorn_as_a_library

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.