Opened 13 years ago

Closed 11 years ago

#30450 closed submission (fixed)

New port for wxpython-devel

Reported by: ajb78@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: jyrkiwahlstedt, jjstickel@…
Port: py27-wxpython-devel

Description

I created a new port for the installation of wxpython devel. It is written for python2.7, but should work for any other pythons.

It works for me and I am able to now use wxpython in 64-bit cocoa mode on both Snow Leopard and Lion on my i5 macbook pro.

Attachments (5)

patch-config.py.diff (354 bytes) - added by ajb78@… 13 years ago.
patch-setup.py.diff (4.3 KB) - added by ajb78@… 13 years ago.
Portfile (2.3 KB) - added by ajb78@… 13 years ago.
Portfile_unified (2.4 KB) - added by michelle.lynn.gill@… 13 years ago.
Portfile.2 (4.3 KB) - added by jjstickel@… 13 years ago.
portfile for wxwidgets-python-devel

Download all attachments as: .zip

Change History (17)

Changed 13 years ago by ajb78@…

Attachment: patch-config.py.diff added

Changed 13 years ago by ajb78@…

Attachment: patch-setup.py.diff added

Changed 13 years ago by ajb78@…

Attachment: Portfile added

comment:1 Changed 13 years ago by ajb78@…

This is a part for the newest wxpython - version 2.9.2.1 - as of this writing.

As an aside I managed to get the latest Mayavi - version 4.0.0 - working with this version of wxpthon. I will submit ports for these as wel soon (some minor patches are required).

comment:2 Changed 13 years ago by mf2k (Frank Schima)

Port: py27-wxpython-devel added
Type: enhancementsubmission
Version: 2.0.0

Please look into using the new unified python portgroup and subgroups to add more python versions of this port.

comment:3 Changed 13 years ago by ajb78@…

Can you tell me about the unified python portgroup - or instructions on how to use it/install it? I can't seem to find instructions on how to write port files with this new framework.

comment:4 Changed 13 years ago by mf2k (Frank Schima)

There is only a post on the macport-developers mailing list so far. But you can take a look at py26-numeric for example. It's part of the py-numeric portfile and uses this new technique.

comment:5 Changed 13 years ago by michelle.lynn.gill@…

I have created a unified python portfile for py-wxpython-devel based on the portfile posted by ajb78 above. I've verified that it installs fine with python 2.7 and 2.6. I have not tested it with other ports.

Changed 13 years ago by michelle.lynn.gill@…

Attachment: Portfile_unified added

comment:6 Changed 13 years ago by gorticus (Jason Mitchell)

Hi Michelle: I'm trying your unified portfile, but I simply cannot get macports (2.0.3) to fetch the source file. From the fetch part of main.log, I see:

  :debug:fetch Executing org.macports.fetch (py-wxpython-devel)
  :debug:fetch Privilege de-escalation not attempted as not running as root.
  :debug:checksum checksum phase started at Wed Sep 14 23:34:29 EDT 2011

and the build continues (checksum, extract) happily until the patching fails because there is nothing download to patch. I clearly am missing something. The fetch does not even test the RTT of sf.net hosts. Any obvious suggestions?

I should say that the original portfile for py27-... downloads and builds, although it complains frequently about deprecated api elements. However, the current version (2.9.2.4) did not build.

comment:7 Changed 13 years ago by ajb78@…

Hi Jason, You also need to download patch-config.py.diff and patch-setup.py.diff and place them into a folder called "files" in the same directory as the portfile. Hope that works!

comment:8 Changed 13 years ago by ajb78@…

(btw thanks Michelle for the unified portfile! I have been too busy to attempt it myself)

comment:9 Changed 13 years ago by gorticus (Jason Mitchell)

Hi Michelle: I did, indeed, setup the patches. And, as I mentioned, ajb78's original Portfile, with patches, builds just fine.

It seems there is something with the unified port groups that is causing fetch to fail. I've seen similar strangeness before, since 2.0.1, but I'm having a hard time remembering the specifics. I may just be recalling #31073.

BTW, has duplicate #27955?

comment:10 Changed 13 years ago by jjstickel@…

Cc: jjstickel@… added

Cc Me!

comment:11 Changed 13 years ago by jjstickel@…

If you want a "wxpython-devel", you will also need a "wxwidgets-python-devel", i.e. you cannot generally use "wxwidgets-devel" because the version may not coincide with the latest wxpython. I will attach a portfile for wxwidgets-python-devel that installed for me. The unified portfile already attached here also installed for me (with small revisions like version number). However, these still do not work with (wx)VTK, which is my primary use, and so I am reverting back to using QT.

Changed 13 years ago by jjstickel@…

Attachment: Portfile.2 added

portfile for wxwidgets-python-devel

comment:12 Changed 11 years ago by mojca (Mojca Miklavec)

Resolution: fixed
Status: newclosed

There is now py-wxpython-3.0 since r110279. In case any feature/functionality is missing, let us know.

Note: See TracTickets for help on using tickets.