#31434: Update py27-pyfits to 3.0.2 ---------------------------------------+------------------------------------ Reporter: marshall.perrin@… | Owner: sebastien.maret@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: py27-pyfits ---------------------------------------+------------------------------------ Comment(by Deil.Christoph@…): I have created a single Portfile that works for python 2.5, 2.6, 2.7, 3.1 and 3.2 and updated to the current stable version 3.0.4. I have removed all the pyXX-pyfits directories and put the new Portfile in a directory py-pyfits. Then after running portindex I could install and import pyfits with all python versions (except 2.4 which is not supported by pyfits). For me clang was used and there are a few -Wunused-function warnings that are irrelevant but could be reported to the pyfits dev. Also there are a bunch of warnings which I think are normal for python modules, but I'm not sure: {{{./bin missing (created) ./etc missing (created) ./include missing (created) ./lib missing (created) ./lib/pkgconfig missing (created) ./libexec missing (created) ./sbin missing (created) ./share missing (created) ./share/info missing (created) ./share/man missing (created) ./share/man/cat1 missing (created) ./share/man/cat2 missing (created) ./share/man/cat3 missing (created) }}} Finally I get the following warnings on pyfits import from ipython (in python there is no warning): {{{ In [1]: import pyfits /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/pyfits/__init__.py:6: UserWarning: Module readline was already imported from /Users/deil/Library/Python/2.7/lib/python/site- packages/IPython/utils/rlineimpl.pyc, but /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/readline is being added to sys.path import pkg_resources /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/pyfits/__init__.py:6: UserWarning: Module argparse was already imported from /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/argparse.pyc, but /Users/deil/Library/Python/2.7/lib/python/site-packages is being added to sys.path import pkg_resources }}} Note that I had the same two warnings when I had installed pyfits from SVN HEAD outside Macports, so this might be a problem of my setup only. I don't know if pyfits has unit tests or how to run them, that would of course be the best check. So overall: I think the attached Portfile is fine and you can submit it. :-) -- Ticket URL: <https://trac.macports.org/ticket/31434#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS