Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#30446 closed request (fixed)

Add py27-spyder port

Reported by: mbrethen@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: lhl@…, eborisch (Eric A. Borisch), jameskyle@…
Port: py27-spyder

Description

Requesting an update to spyder 2.0.12 which supports py27.

Attachments (2)

Portfile (1.7 KB) - added by mbrethen@… 13 years ago.
local Portfile for py27-spyder
patch-widgets-pylintgui.py.diff (496 bytes) - added by mbrethen@… 13 years ago.
patch to look for pylint by its correct MacPorts name

Download all attachments as: .zip

Change History (15)

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

Keywords: spyder python removed
Port: py27-spyder added; py26-spyder removed
Type: updaterequest
Version: 1.9.2

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

Summary: py26-spyder updateAdd py27-spyder port

comment:3 Changed 13 years ago by mbrethen@…

Tested local Portfile and seems to be working.

comment:4 Changed 13 years ago by mbrethen@…

The online documentation doesn't seem to be working in my local install. It could be related to this issue posted at spyderlib: http://code.google.com/p/spyderlib/issues/detail?id=577

comment:5 Changed 13 years ago by mbrethen@…

PyLint Panel in Spyder "Please install pylint"

I looked in /opt/local/bin and found 'pylint-2.7' which is a symbolic link to '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/pylint'. You should be able to type 'pylint script.py' in a command window, that's how pylint is intended to be used in Spyder.

comment:6 Changed 13 years ago by mbrethen@…

Traced the error to 'spyder-2.0.12/spyderplugins/widgets/pylintgui.py'. Expects to find 'pylint' in ${destroot}${prefix}/bin. Whereas pylint{-${python.branch}} is located in ${destroot}${prefix}/bin.

Changed 13 years ago by mbrethen@…

Attachment: Portfile added

local Portfile for py27-spyder

Changed 13 years ago by mbrethen@…

patch to look for pylint by its correct MacPorts name

comment:7 Changed 13 years ago by mbrethen@…

Apply attached patch so that spyder-2.0.12/spyderplugins/widgets/pylintgui.py checks for pylint by the correct suffixed name.

comment:8 Changed 13 years ago by lhl@…

Cc: lhl@… added

Cc Me!

comment:9 Changed 13 years ago by mbrethen@…

I didn't think of this before, but using 'port select' could be used to create a symbolic link 'pylint' in opt/local/bin. Thus, a patch to Spyder could be avoided. A pylint group is necessary in order to use the 'select' target keyword.

comment:10 Changed 13 years ago by mbrethen@…

Reference Ticket #30626 'pylint: use select portgroup'

comment:11 Changed 13 years ago by eborisch (Eric A. Borisch)

Cc: eborisch@… added
Resolution: fixed
Status: newclosed

I've committed this in r82219. I also fixed (in the same patchfile) the pylint parser for the updated (in 0.24.0 of pylint) output format.

comment:12 Changed 13 years ago by eborisch (Eric A. Borisch)

Cc: jameskyle@… added

Added py26-spyder maintainer to copy list.

comment:13 Changed 13 years ago by eborisch (Eric A. Borisch)

See also #30720

Note: See TracTickets for help on using tickets.