Opened 9 years ago

Closed 5 years ago

#48508 closed enhancement (fixed)

gobject-introspection: Switch to python 3

Reported by: tla@… Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc: olupton (Olli Lupton), MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), mf2k (Frank Schima)
Port: gobject-introspection

Description

At the moment, gobject-introspection requires Python 2 to build (via py27-mako). There is as far as I can tell no good reason for this - it works fine with py34-mako too. It would be good to have a port variant for python 3, and perhaps even better to make it the default.

Change History (13)

comment:1 Changed 9 years ago by dbevans (David B. Evans)

Owner: changed from macports-tickets@… to devans@…
Status: newassigned

comment:2 Changed 9 years ago by dbevans (David B. Evans)

I tried but the current stable version (1.44.0) doesn't build using python3. However, there have recently been some python3 commits upstream in the unstable branch and I am testing them now.

I agree it would be nice to upgrade to python3 so will leave this ticket open and make the necessary changes when possible. Thanks for the suggestion.

comment:3 Changed 6 years ago by dmarteau (David Marteau)

Hi,

It is now 3 year later, may be it could be interesting to consider again moving to python3 ?

Thanks,

Last edited 6 years ago by dmarteau (David Marteau) (previous) (diff)

comment:4 Changed 6 years ago by eirnym (Arseny Nasokin)

An additional page confirms that it doesn't require Python2. It insist a reader to compile this library against Python3

comment:5 Changed 6 years ago by eirnym (Arseny Nasokin)

And it indeed compiles with Python3 on my local machine. I changed in port numbers and it worded.

Also configure code and some other internals mention Python3, even version 3.8 explicitly.

comment:6 Changed 5 years ago by olupton (Olli Lupton)

Cc: olupton added

comment:7 Changed 5 years ago by olupton (Olli Lupton)

I also tried changing the python version to 3.7 locally and didn't run into any problems.

comment:8 Changed 5 years ago by mf2k (Frank Schima)

Summary: gobject-introspection shouldn't require Python 2gobject-introspection: Switch to python 3

comment:9 Changed 5 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Cc: MarcusCalhoun-Lopez added

comment:10 Changed 5 years ago by mf2k (Frank Schima)

Cc: mf2k added

comment:11 Changed 5 years ago by dmarteau (David Marteau)

Considering that we are now at 10 month of Python2 End Of Life, switching to python3 should be taken seriously. Thanks.

comment:13 Changed 5 years ago by neverpanic (Clemens Lang)

Resolution: fixed
Status: assignedclosed

In 56c4bcd5f298d4e110199ab07add2888e4db1d27/macports-ports (master):

gobject-introspection: Switch to Python 3.7

Closes: #48508

Note: See TracTickets for help on using tickets.