[MacPorts] #37254: py25-cairo: SyntaxError: invalid syntax
#37254: py25-cairo: SyntaxError: invalid syntax --------------------------+----------------------------------- Reporter: ryandesign@… | Owner: sean.michael.farley@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: py25-cairo --------------------------+----------------------------------- py25-cairo @1.10.0 does not build: {{{ setup.py:50: Warning: 'with' will become a reserved keyword in Python 2.6 File "setup.py", line 50 with open(PcFile, 'w') as fo: ^ SyntaxError: invalid syntax }}} -- Ticket URL: <https://trac.macports.org/ticket/37254> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37254: py25-cairo: SyntaxError: invalid syntax ---------------------------+----------------------------------- Reporter: ryandesign@… | Owner: sean.michael.farley@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: py25-cairo | ---------------------------+----------------------------------- Comment (by ryandesign@…): The project's homepage says 1.10.0 requires python 2.6 or greater. I guess that's why the pre-unification py25-cairo port was not updated to that version. -- Ticket URL: <https://trac.macports.org/ticket/37254#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37254: py25-cairo: SyntaxError: invalid syntax ---------------------------+----------------------------------- Reporter: ryandesign@… | Owner: sean.michael.farley@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: py25-cairo | ---------------------------+----------------------------------- Comment (by sean.michael.farley@…): Replying to [comment:1 ryandesign@…]:
The project's homepage says 1.10.0 requires python 2.6 or greater. I guess that's why the pre-unification py25-cairo port was not updated to that version.
Hmmm, I didn't have python 2.4 nor 2.5 in the port file I sent Aljaž (g5pw@macports.org). It seems I can't add him to be CC'd, can I? Anyway, I can send a patch that adds support for versions 2.4 and 2.5 but they would be old versions due to the upstream project dropping support for those versions. From the mailing list discussion, http://article.gmane.org/gmane.os.apple.macports.devel/21087 it seems that we should just not bother with 2.4 and 2.5? -- Ticket URL: <https://trac.macports.org/ticket/37254#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37254: py25-cairo: SyntaxError: invalid syntax ---------------------------+----------------------------------- Reporter: ryandesign@… | Owner: sean.michael.farley@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: py25-cairo | ---------------------------+----------------------------------- Changes (by ryandesign@…): * cc: g5pw@… (added) Comment: If you want to fix py25-cairo I agree putting back in the older version (as an explicit subport in the py-cairo port) would be the best option. If you want to remove py25-cairo then there are probably some existing ports that currently depend on it that you would have to deal with. -- Ticket URL: <https://trac.macports.org/ticket/37254#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37254: py25-cairo: SyntaxError: invalid syntax ---------------------------+----------------------------------- Reporter: ryandesign@… | Owner: sean.michael.farley@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: py25-cairo | ---------------------------+----------------------------------- Comment (by sean.michael.farley@…): Replying to [comment:3 ryandesign@…]:
If you want to fix py25-cairo I agree putting back in the older version (as an explicit subport in the py-cairo port) would be the best option.
If you want to remove py25-cairo then there are probably some existing ports that currently depend on it that you would have to deal with.
I can't find anything that depends on py2{4,5}-cairo currently in the macports source tree, so maybe just leave those versions out? -- Ticket URL: <https://trac.macports.org/ticket/37254#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37254: py25-cairo: SyntaxError: invalid syntax ---------------------------+----------------------------------- Reporter: ryandesign@… | Owner: sean.michael.farley@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: py25-cairo | ---------------------------+----------------------------------- Comment (by g5pw@…): Hello! I'm sorry, Sean, I had to add it manually later without warning you because py25-pygtk depends on py25-cairo and a '''lot''' of ports depend on py25-pygtk. I could just nix the old ports, that's why I started the discussion in the dev mailing list. So, what should we do? -- Ticket URL: <https://trac.macports.org/ticket/37254#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37254: py25-cairo: SyntaxError: invalid syntax ---------------------------+----------------------------------- Reporter: ryandesign@… | Owner: sean.michael.farley@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: py25-cairo | ---------------------------+----------------------------------- Comment (by ryandesign@…): Since a lot of things still depend indirectly on py25-pygtk, it would be simplest to retain it for now. The py-ipython port gives an example of how you can have subports with different versions. -- Ticket URL: <https://trac.macports.org/ticket/37254#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37254: py25-cairo: SyntaxError: invalid syntax ---------------------------+----------------------------------- Reporter: ryandesign@… | Owner: sean.michael.farley@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: py25-cairo | ---------------------------+----------------------------------- Comment (by sean.michael.farley@…): Replying to [comment:6 ryandesign@…]:
Since a lot of things still depend indirectly on py25-pygtk, it would be simplest to retain it for now. The py-ipython port gives an example of how you can have subports with different versions.
Ok, I've added support for python 2.5 with the three patches I just attached. Let me know if there are any other problems! -- Ticket URL: <https://trac.macports.org/ticket/37254#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37254: py25-cairo: SyntaxError: invalid syntax ---------------------------+----------------------------------- Reporter: ryandesign@… | Owner: sean.michael.farley@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: Port: py25-cairo | ---------------------------+----------------------------------- Changes (by dports@…): * status: new => closed * resolution: => fixed Comment: Thanks for the patch -- I committed the whitespace update as r100408 and the other two as r100409. I also set the revision of the py25 subport to 3, since the previous v1.8.2 port had revision 2. (It might not have actually been necessary to bump the revision beyond 2, but I figured I'd do it to be safe since I wasn't paying close attention to all the other changes in the port.) -- Ticket URL: <https://trac.macports.org/ticket/37254#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37254: py25-cairo: SyntaxError: invalid syntax ---------------------------+----------------------------------- Reporter: ryandesign@… | Owner: sean.michael.farley@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: Port: py25-cairo | ---------------------------+----------------------------------- Comment (by dports@…): ...and fixed a portindex error in r100410 by moving the `if (${python.version} ...)` check inside the `if {$subport != $name}` block. -- Ticket URL: <https://trac.macports.org/ticket/37254#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37254: py25-cairo: SyntaxError: invalid syntax ---------------------------+----------------------------------- Reporter: ryandesign@… | Owner: sean.michael.farley@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: Port: py25-cairo | ---------------------------+----------------------------------- Comment (by sean.michael.farley@…): Replying to [comment:9 dports@…]:
Thanks for the patch -- I committed the whitespace update as r100408 and the other two as r100409.
Thanks, chief!
I also set the revision of the py25 subport to 3, since the previous v1.8.2 port had revision 2. (It might not have actually been necessary to bump the revision beyond 2, but I figured I'd do it to be safe since I wasn't paying close attention to all the other changes in the port.)
Good point. I didn't know the protocol, either, but it wouldn't hurt to bump it.
...and fixed a portindex error in r100410 by moving the if (${python.version} ...) check inside the if {$subport != $name} block.
Hmmm, I didn't get that error. Was it just from running `portindex`? -- Ticket URL: <https://trac.macports.org/ticket/37254#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts