[MacPorts] #48107: py-visa @1.4 update to 1.5
#48107: py-visa @1.4 update to 1.5 ---------------------------------+-------------------------------- Reporter: joshuacookebarnes@… | Owner: macports-tickets@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Keywords: | Port: py-visa ---------------------------------+-------------------------------- Attached is a patch for version update of the py-visa port to 1.5 This could just as easily update to 1.6 or 2.7, but there are significant API changes between 1.4 and 1.6, so I thought it'd be best to make 1.5 available, since it provides support for the 1.4 interface as well as the new features. If I'm trying to go about this the wrong way, let me know! Several changes: * I've switched to pulling from the pyvisa maintainer's github repository instead of PyPI * livecheck updated to use github URL * added py33 version. py-visa and its dependencies all seem to cater for 33. py-visa also lists 32, but there's no py32-setuptools. * altered warning about 64-bit python. NI-VISA version 14.0 and above now support 64-bit apps, so there are two possible solutions. -- Ticket URL: <https://trac.macports.org/ticket/48107> MacPorts <https://www.macports.org/> Ports system for OS X
#48107: py-visa @1.4 update to 1.5 ----------------------------------+-------------------------------- Reporter: joshuacookebarnes@… | Owner: macports-tickets@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: py-visa | ----------------------------------+-------------------------------- Changes (by mf2k@…): * keywords: => haspatch * version: 2.3.3 => Comment: Thanks! -- Ticket URL: <https://trac.macports.org/ticket/48107#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#48107: py-visa @1.4 update to 1.5 ----------------------------------+-------------------------------- Reporter: joshuacookebarnes@… | Owner: macports-tickets@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: py-visa | ----------------------------------+-------------------------------- Comment (by khindenburg@…): Does test work for you? {{{ sudo port -v test py27-visa }}} AttributeError: 'module' object has no attribute 'testsuite' -- Ticket URL: <https://trac.macports.org/ticket/48107#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#48107: py-visa @1.4 update to 1.5 ----------------------------------+-------------------------------- Reporter: joshuacookebarnes@… | Owner: macports-tickets@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: py-visa | ----------------------------------+-------------------------------- Comment (by joshuacookebarnes@…): Replying to [comment:3 khindenburg@…]:
Does test work for you?
{{{ sudo port -v test py27-visa }}}
AttributeError: 'module' object has no attribute 'testsuite'
Good point, no, it doesn't. I've little idea how testing works right now, but I'll take a look. J -- Ticket URL: <https://trac.macports.org/ticket/48107#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#48107: py-visa @1.4 update to 1.5 ----------------------------------+-------------------------------- Reporter: joshuacookebarnes@… | Owner: macports-tickets@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: py-visa | ----------------------------------+-------------------------------- Comment (by joshuacookebarnes@…): Ok, I've managed to get tests to pass, with a few patches, mainly to fix broken `import` statements. However, I also needed to patch a broken atexit function in `pyvisa.legacy.visa`, which was trying to use a `resource_manager` which turned out to be `None` at call. I'm not completely sure that this doesn't simply hide a broken test, rather than just get the test to run correctly. Finally, the tests will only pass if the location of the visa shared library is set by a `~/.pyvisarc` file. It might be worth patching to look for the library in the default Darwin install location (`/Library/Frameworks/VISA.framework/VISA`), but I haven't bothered so far. -- Ticket URL: <https://trac.macports.org/ticket/48107#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
#48107: py-visa @1.4 update to 1.5 ----------------------------------+-------------------------------- Reporter: joshuacookebarnes@… | Owner: macports-tickets@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: py-visa | ----------------------------------+-------------------------------- Comment (by khindenburg@…): I've attached a diff to 1.8 - I can't really test it. I think most of your patches are no longer needed. Let me know if you can test it and what changes you want. -- Ticket URL: <https://trac.macports.org/ticket/48107#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
#48107: py-visa @1.4 update to 1.8 ----------------------------------+-------------------------------- Reporter: joshuacookebarnes@… | Owner: macports-tickets@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: py-visa | ----------------------------------+-------------------------------- Comment (by petr@…): There seem to be no port depending on py-visa, so I guess we no not need to care about backwards compatibility. -- Ticket URL: <https://trac.macports.org/ticket/48107#comment:8> MacPorts <https://www.macports.org/> Ports system for OS X
#48107: py-visa @1.4 update to 1.8 ----------------------------------+-------------------------------- Reporter: joshuacookebarnes@… | Owner: macports-tickets@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: py-visa | ----------------------------------+-------------------------------- Comment (by petr@…): BTW: If we discontinue the py26 subport, shouldn't it be graveyarded? -- Ticket URL: <https://trac.macports.org/ticket/48107#comment:9> MacPorts <https://www.macports.org/> Ports system for OS X
#48107: py-visa @1.4 update to 1.8 ----------------------------------+-------------------------------- Reporter: joshuacookebarnes@… | Owner: macports-tickets@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: py-visa | ----------------------------------+-------------------------------- Comment (by mf2k@…): Replying to [comment:9 petr@…]:
BTW: If we discontinue the py26 subport, shouldn't it be graveyarded?
Yes. -- Ticket URL: <https://trac.macports.org/ticket/48107#comment:10> MacPorts <https://www.macports.org/> Ports system for OS X
#48107: py-visa @1.4 update to 1.8 ----------------------------------+-------------------------------- Reporter: joshuacookebarnes@… | Owner: macports-tickets@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: py-visa | ----------------------------------+-------------------------------- Comment (by mf2k@…): @khindenburg: Please commit your patch. No point in keeping this port at such an old version. The [http://www.ni.com/download/ni- visa-14.0.2/5075/en/ OS X VISA driver from National Instruments] appears to be 64-bit now. -- Ticket URL: <https://trac.macports.org/ticket/48107#comment:11> MacPorts <https://www.macports.org/> Ports system for OS X
#48107: py-visa @1.4 update to 1.8 ----------------------------------+-------------------------------- Reporter: joshuacookebarnes@… | Owner: macports-tickets@… Type: update | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: haspatch Port: py-visa | ----------------------------------+-------------------------------- Changes (by khindenburg@…): * status: new => closed * resolution: => fixed Comment: done r148362 -- Ticket URL: <https://trac.macports.org/ticket/48107#comment:12> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts