[MacPorts] #15771: Portfile for py25-tables
#15771: Portfile for py25-tables -----------------------------+---------------------------------------------- Reporter: tom.duck@dal.ca | Owner: macports-tickets@lists.macosforge.org Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Keywords: py25-tables | -----------------------------+---------------------------------------------- Python 2.5 is missing the pytables extension library (http://www.pytables.org/), which is used to read hdf5 file in python. I have attached a Portfile based on the one for Python 2.4 at http://trac.macports.org/browser/trunk/dports/python/py-tables/Portfile. I wrote my email in as the maintainer, but I would be just as happy if someone else's name was put in. I ran the units tests that came with the package, and a few failures showed up. A transcript is given in the second attachment. These appear to be known and minor bugs associated with changes in the latest version of py25-numpy that have yet to be addressed by the pytables team. See the series of posts at http://thread.gmane.org/gmane.comp.python.pytables.user/849 for more information. -- Ticket URL: <http://trac.macports.org/ticket/15771> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15771: Portfile for py25-tables ------------------------------+--------------------------------------------- Reporter: tom.duck@dal.ca | Owner: macports-tickets@lists.macosforge.org Type: enhancement | Status: new Priority: Normal | Milestone: Port Submissions Component: ports | Version: 1.6.0 Resolution: | Keywords: py25-tables ------------------------------+--------------------------------------------- Changes (by jmr@macports.org): * milestone: => Port Submissions -- Ticket URL: <http://trac.macports.org/ticket/15771#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15771: Portfile for py25-tables ------------------------------+--------------------------------------------- Reporter: tom.duck@dal.ca | Owner: ram@macports.org Type: enhancement | Status: assigned Priority: Normal | Milestone: Port Submissions Component: ports | Version: 1.6.0 Resolution: | Keywords: py25-tables ------------------------------+--------------------------------------------- Changes (by ram@macports.org): * owner: macports-tickets@lists.macosforge.org => ram@macports.org * status: new => assigned -- Ticket URL: <http://trac.macports.org/ticket/15771#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15771: Portfile for py25-tables ------------------------------+--------------------------------------------- Reporter: tom.duck@dal.ca | Owner: ram@macports.org Type: enhancement | Status: assigned Priority: Normal | Milestone: Port Submissions Component: ports | Version: 1.6.0 Resolution: | Keywords: py25-tables ------------------------------+--------------------------------------------- Comment (by ram@macports.org): I get the following error when trying to install if py-tables is installed: {{{ [ram@cizin py25-tables]$ sudo port install ---> Fetching py25-tables ---> Verifying checksum(s) for py25-tables ---> Extracting py25-tables ---> Configuring py25-tables ---> Building py25-tables with target build_ext ---> Staging py25-tables into destroot ---> Installing py25-tables @2.0.3_0 ---> Activating py25-tables @2.0.3_0 Error: Target org.macports.activate returned: Image error: /opt/local/bin/nctoh5 is being used by the active py-tables port. Please deactivate this port first, or use the -f flag to force the activation. Error: Status 1 encountered during processing. }}} Would renaming nctoh5 to nctoh5-2.5 for python25 and nctoh5-2.4 for python24 cause anything to break? -- Ticket URL: <http://trac.macports.org/ticket/15771#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15771: Portfile for py25-tables ------------------------------+--------------------------------------------- Reporter: tom.duck@dal.ca | Owner: ram@macports.org Type: enhancement | Status: assigned Priority: Normal | Milestone: Port Submissions Component: ports | Version: 1.6.0 Resolution: | Keywords: py25-tables ------------------------------+--------------------------------------------- Comment (by tom.duck@dal.ca): Oops. I missed that -- I wasn't aware that pytables had utilities packaged with it. I will look into it and get back to you. -- Ticket URL: <http://trac.macports.org/ticket/15771#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15771: Portfile for py25-tables ------------------------------+--------------------------------------------- Reporter: tom.duck@dal.ca | Owner: ram@macports.org Type: enhancement | Status: assigned Priority: Normal | Milestone: Port Submissions Component: ports | Version: 1.6.0 Resolution: | Keywords: py25-tables ------------------------------+--------------------------------------------- Comment (by tom.duck@dal.ca): There are three utilities bundled with pytables: ptdump, ptrepack and nctoh5. See http://www.pytables.org/docs/manual/apd.html. I have attached a patch for setup.py and a new Portfile that uses it. The patch appends "-py25" to each of the utility names. There are also some additional dependencies, and they are commented on in the Portfile. The python24 version should probably be updated in the same way (both for the script names and dependencies). The approach fink uses is to create symlinks from the unversioned names to the higher-version scripts (e.g., ptdump -> ptdump-25). See http://www.finkports.info/ports/sci/pytables-py.html. That seems like a reasonable choice, although I have no idea how to implement that in the context of MacPorts. Having symlinks from the unversioned names is needed to avoid breaking user scripts that may be depend on them. -- Ticket URL: <http://trac.macports.org/ticket/15771#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15771: Portfile for py25-tables ------------------------------+--------------------------------------------- Reporter: tom.duck@dal.ca | Owner: ram@macports.org Type: enhancement | Status: assigned Priority: Normal | Milestone: Port Submissions Component: ports | Version: 1.6.0 Resolution: | Keywords: py25-tables ------------------------------+--------------------------------------------- Comment (by ram@macports.org): Is the use of setuptools just for renaming the files? If so is there reason why they cannot be renamed in a post-destroot phase? i.e. {{{ post-destroot { foreach f {ptdump ptrepack nctoh5} { move ${destroot}${prefix}/bin/${f} ${destroot}${prefix}/bin/${f}-py25 } } }}} Is there an inter-script dependency that renaming the programs in setup.py satisfies? -- Ticket URL: <http://trac.macports.org/ticket/15771#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15771: Portfile for py25-tables ------------------------------+--------------------------------------------- Reporter: tom.duck@dal.ca | Owner: ram@macports.org Type: enhancement | Status: assigned Priority: Normal | Milestone: Port Submissions Component: ports | Version: 1.6.0 Resolution: | Keywords: py25-tables ------------------------------+--------------------------------------------- Comment (by tom.duck@dal.ca): Yes, you are quite right. I am not quite fluent in tcl, and so went for the easy fix in the python. ;) -- Ticket URL: <http://trac.macports.org/ticket/15771#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15771: Portfile for py25-tables ------------------------------+--------------------------------------------- Reporter: tom.duck@dal.ca | Owner: ram@macports.org Type: enhancement | Status: closed Priority: Normal | Milestone: Port Submissions Component: ports | Version: 1.6.0 Resolution: fixed | Keywords: py25-tables ------------------------------+--------------------------------------------- Changes (by ram@macports.org): * status: assigned => closed * resolution: => fixed Comment: committed in r37939 with minor changes, thanks -- Ticket URL: <http://trac.macports.org/ticket/15771#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts