Opened 12 years ago

Closed 4 years ago

#33389 closed submission (wontfix)

New package py26-gtkglext

Reported by: thetawaves@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: jovo@…, cooljeanius (Eric Gallager), petrrr, seanfarley (Sean Farley)
Port: py26-gtkglext

Description

This is a simple update to py25-gtkglext to compile against python2.6.

WHY?
Python 2.5 has bugs marked wont fix that make it impossible to run pycam. Pycam depends on pygtkglext. and pygtkglext is only available for python2.5.

PROBLEMS:
1) I had to create two symbolic links after py26-gtkglext was installed:

$ sudo ln -s /opt/local/lib/python2.6/site-packages/gtk-2.0/gtk/gtkgl /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/gtk-2.0/gtk/gtkgl

$ sudo ln -s /opt/local/lib/python2.6/site-packages/gtk-2.0/gtk/gdkgl /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/gtk-2.0/gtk/gdkgl

Instead of these links should the Portfile instead tell pygtkglext to install in /opt/local/Library/Frameworks... ?

2) py25-gtkglext and py26-gtkglext can not be installed at the same time. This does not affect me at all.

Attachments (3)

Portfile (1.2 KB) - added by thetawaves@… 12 years ago.
Copy of py25-gtkglext with some version numbers changed to target python2.6
Portfile.2 (1.3 KB) - added by sorokine@… 11 years ago.
Portfile for py27, compiles but library fails to load
2016-01-01 py27-gtkglext.tgz (1.8 KB) - added by Blokkendoos (Johan) 8 years ago.
py27-gtkglext for OS X 10.10

Download all attachments as: .zip

Change History (12)

Changed 12 years ago by thetawaves@…

Attachment: Portfile added

Copy of py25-gtkglext with some version numbers changed to target python2.6

comment:1 Changed 12 years ago by mf2k (Frank Schima)

Cc: thetawaves@… removed
Keywords: py26-gtkglext pycam removed
Version: 2.0.3

The existing py25-gtkglext should be unified to add py26, py27, etc instead.

comment:2 Changed 11 years ago by jovo@…

Cc: jovo@… added

Cc Me!

comment:3 Changed 11 years ago by jovo@…

Another pyCAM user. Runing pyCAM, until recently, with the py26-gtklext fix described. Now moved to Homebrew http://www.shapeoko.com/wiki/index.php/PyCAM-MacOS as a workaround.

Last edited 11 years ago by jovo@… (previous) (diff)

comment:4 Changed 11 years ago by sorokine@…

I've tried to fix this port for py27 but it did not work. To make it compile I have had to add the following link:

ln -s /opt/local/bin/pygtk-codegen-2.0-2.7 /opt/local/bin/pygtk-codegen-2.0

import gtk.gtkgl fails despite having /opt/local/lib/python2.6/site-packages/gtk-2.0/gtk/gtkgl on the path:

>>> import gtk.gtkgl
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named gtkgl

Altered Portfile attached (fix for pkg-config).

Changed 11 years ago by sorokine@…

Attachment: Portfile.2 added

Portfile for py27, compiles but library fails to load

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

A few comments:

  • The revision line needs to be removed.
  • Is there a reason it does not use the unified python portgroup?
  • Formatting could be improved.
Last edited 11 years ago by mf2k (Frank Schima) (previous) (diff)

comment:6 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:7 Changed 9 years ago by petrrr

Cc: petr@… added

Cc Me!

Changed 8 years ago by Blokkendoos (Johan)

py27-gtkglext for OS X 10.10

comment:8 Changed 8 years ago by Blokkendoos (Johan)

Added py27-gtkglext portfile for OS X 10.10 (Yosemite).
Patched configure to use pygobject-codegen-2.0-2.7 instead of pygtk-codegen-2.0. Did not figure out how to get the location/links right, so two symlinks are still needed after installation.

$ sudo port install py27-gtkglext
$ sudo ln -s /opt/local/lib/python2.7/site-packages/gtk-2.0/gtk/gtkgl /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gtk-2.0/gtk/gtkgl;
$ sudo ln -s /opt/local/lib/python2.7/site-packages/gtk-2.0/gtk/gdkgl /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gtk-2.0/gtk/gdkgl;

comment:9 Changed 4 years ago by jmroot (Joshua Root)

Cc: seanfarley added
Resolution: wontfix
Status: newclosed

Deleted in r113806.

Note: See TracTickets for help on using tickets.