[Nipy-devel] distutils, numpy, weave
Jonathan Taylor
jonathan.taylor at stanford.edu
Thu Jul 6 00:35:18 CDT 2006
I was wondering if any one out there knows much about numpy.distutils vs.
distutils, and if there is anything there we should be using.
Rather vague, I know.
The most concrete reason I ask is that I add some weave code in
nifti1.py to
build a small extension module for computing the quaternion, offsets and
pixdim from a 4x4 matrix, and I would like to add this to "setup.py" in
some way.
Right now, it gets built by try/except catching an ImportError...... see
line 1044 here
http://projects.scipy.org/neuroimaging/ni/browser/ni/trunk/lib/neuroimaging/image/formats/nifti1.py
This could fail if the neuroimaging package is installed by a sysadmin
but nifti1 is never imported....
I suppose in this case it could be made "inline" but I just wondered in
general if there
is a nice way to make small weave extensions and add them to the overall
"setup.py".....
-- Jonathan
--
------------------------------------------------------------------------
Jonathan Taylor Tel: 650.723.9230
Dept. of Statistics Fax: 650.725.8977
Sequoia Hall, 137 www-stat.stanford.edu/~jtaylo
390 Serra Mall
Stanford, CA 94305
More information about the Nipy-devel
mailing list