ports/147052: Port Update: astro/py-pyfits

Tony Maher tonymaher at optusnet.com.au
Wed May 26 09:30:02 UTC 2010


>Number:         147052
>Category:       ports
>Synopsis:       Port Update: astro/py-pyfits
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 26 09:30:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Tony Maher
>Release:        FreeBSD 8.0-RELEASE-p2 amd64
>Organization:
>Environment:
System: FreeBSD zen.home 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #0: Mon May 24 18:02:19 EST 2010 root at zen.home:/space10/usr/obj/usr/src/sys/ZEN amd64


>Description:

    The port astro/py-pyfits is out of date and does not work with the
    default python2.6.  When using it with astro/py-aipy get errors.

>How-To-Repeat:
	
    plot_uv.py -a 0_1 -p yy -c 22,32,42 -t 300_500 -m lin test.uv
    Reading test.uv
    /usr/local/lib/python2.6/site-packages/matplotlib/backends/backend_gtk.py:621:
    DeprecationWarning: functions overriding warnings.showwarning() must
    support the 'line' argument
    ...
    ...
    File "/usr/local/lib/python2.6/site-packages/pyfits/NP_pyfits.py",
		line 76, in showwarning
        _showwarning(message, category, filename, lineno, file)
    File "/usr/local/lib/python2.6/warnings.py", line 29, in _show_warning
            file.write(formatwarning(message, category, filename, lineno, line))
    TypeError: formatwarning() takes exactly 4 arguments (5 given)

>Fix:

diff -ruN py-pyfits.orig/Makefile py-pyfits/Makefile
--- py-pyfits.orig/Makefile	2008-11-02 09:01:53.000000000 +1100
+++ py-pyfits/Makefile	2010-05-26 19:06:13.000000000 +1000
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	pyfits
-PORTVERSION=	1.3
+PORTVERSION=	2.3
 CATEGORIES=	astro python
 MASTER_SITES=	http://www.stsci.edu/resources/software_hardware/${PORTNAME}/
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
diff -ruN py-pyfits.orig/distinfo py-pyfits/distinfo
--- py-pyfits.orig/distinfo	2008-11-02 09:01:53.000000000 +1100
+++ py-pyfits/distinfo	2010-05-26 19:06:59.000000000 +1000
@@ -1,3 +1,3 @@
-MD5 (pyfits-1.3.tar.gz) = 59c3c8c714336eab7760b7d320e124c3
-SHA256 (pyfits-1.3.tar.gz) = a6b01c9d75e7955765019581700bd6ac344457b327522facedaf4cff9e86093c
-SIZE (pyfits-1.3.tar.gz) = 3425265
+MD5 (pyfits-2.3.tar.gz) = 450ff6bf5e8c4e83da10c14c5277a0e8
+SHA256 (pyfits-2.3.tar.gz) = 29e32040ffe96a25336c599f4ca1e560a1bc7d3fdc22638911797525ed3c3208
+SIZE (pyfits-2.3.tar.gz) = 347960

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list