Opened 17 years ago

Closed 17 years ago

Last modified 15 years ago

#11795 closed update (fixed)

UPDATE: pygsl

Reported by: macports@… Owned by: jochen@…
Priority: High Milestone:
Component: ports Version: 1.4.40
Keywords: py-gsl; gsl; python Cc:
Port:

Description

I would like to see the py=gsl port be updated to the latest version. I am also willing to take maintainership for the port.

I have created an new Portfile, which now provides three variants for different Python array-packages: +numpy, +Numeric, +numarray. +numpy is the default variant.

# $Id: Portfile 24006 2007-04-14 20:21:00Z markd@macports.org $

PortSystem 1.0
PortGroup python24 1.0

name			py-gsl
version			0.9.0
categories		python science
platforms		darwin
maintainers		macports@jochen-kuepper.de
description		Python interface to the GNU scientific library
long_description	Python interface to the GSL, the GNU scientfic library. \
			A lot of functions, random number generators are \
			available.

homepage		http://pygsl.sourceforge.net/
master_sites		sourceforge:pygsl
distname		pygsl-${version}
checksums		md5 c69c3deed25525f153f2f03942e99040

default_variants	+numpy

build.env		CFLAGS="-I${prefix}/include -I${prefix}/include/gsl"\
			LDFLAGS=-L${prefix}/lib

patchfiles              block_helpers.c.diff \
                        src-__init__.py.diff

post-destroot	{
	xinstall -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}
}

variant numpy {
	depends_lib-append      port:gsl \
                                port:py-numpy
	build.args		--array-object=numpy
}
variant Numeric {
	depends_lib-append      port:gsl \
                                port:py-numeric
	build.args		--array-object=Numeric
}
variant numarray {
	depends_lib-append      port:gsl \
                                port:py-numarray
	build.args		--array-object=numarray
}

The port also needs two small patches. Here is block_helper.c.diff:

--- src/init/block_helpers.c-orig       2007-04-17 18:32:03.000000000 +0200
+++ src/init/block_helpers.c    2007-04-17 20:27:02.000000000 +0200
@@ -240,7 +240,7 @@
      PyGSL_add_traceback(NULL, filename, __FUNCTION__, line);
      DEBUG_MESS(4, "common array types: Double %d, CDouble %d", PyArray_DOUBLE, PyArray_CDOUBLE);
      DEBUG_MESS(4, "integer: Long %d, Int %d, Short %d", PyArray_LONG, PyArray_INT, PyArray_SHORT);
-     DEBUG_MESS(8, "Char type %d  Byte type %d String type %d", PyArray_CHAR, PyArray_BYTE, PyArray_STRING);
+     /* DEBUG_MESS(8, "Char type %d  Byte type %d String type %d", PyArray_CHAR, PyArray_BYTE, PyArray_STRING); */
      return error_flag;
 }

and src-init.py.diff:

--- pygsl/__init__.py-orig      2006-12-07 20:39:39.000000000 +0100
+++ pygsl/__init__.py   2007-04-17 20:34:41.000000000 +0200
@@ -75,7 +75,7 @@
 # The compile date
 compile_date = pygsl.init.compile_date
 
-version="0.3.2"
+version="0.9.0"
 __all__=['blas', 'chebyshev', 'combination', 'const', 'deriv', 'eigen', 'fit',
          'fft', 'histogram','ieee', 'integrate', 'interpolation','linalg',
          'math', 'minimize', 'monte', 'multifit', 'multifit_nlin', 'multimin',

I have checked this in a separate source-tree, but I cannot test the port itself, as the patches obviously cannot be fetched:

sudo port install py-gsl +numarray
--->  Fetching py-gsl
--->  Attempting to fetch block_helpers.c.diff from http://distfiles-od.opendarwin.org/python
--->  Attempting to fetch block_helpers.c.diff from http://distfiles-msn.opendarwin.org/python
--->  Attempting to fetch block_helpers.c.diff from http://distfiles-od.opendarwin.org/

Change History (6)

comment:1 Changed 17 years ago by roederja

Could you please attach the files instead of pasting them. Especially patch files break very easily if pasted...

comment:2 Changed 17 years ago by macports@…

I don't have the files anymore; I could also only copy them out here and paste them into an attachment file. I will attach them next time.

pygsl-0.9.1 should be out soon, I will prepare a new Portfile then.

comment:3 Changed 17 years ago by jochen@…

Cc: macports@… removed
Owner: changed from macports-dev@… to jochen@…
Version: 1.41.4.40

comment:4 Changed 17 years ago by jochen@…

Resolution: fixed
Status: newclosed

updated the port to 0.9.1 and provided variants similar to what was suggested in this ticket

comment:5 Changed 15 years ago by jmroot (Joshua Root)

Type: enhancementupdate

comment:6 Changed 15 years ago by (none)

Milestone: Port Updates

Milestone Port Updates deleted

Note: See TracTickets for help on using tickets.