[Pythonmac-SIG] SciPy install on Tiger with Python 2.4.1 framework
Samuel M. Smith
smithsm at samuelsmith.org
Thu Aug 11 22:06:09 CEST 2005
>
> Unfortunately, it doesn't look scipy.org has been updated with
> instructions on pulling from Subversion, but Fernando Perez has put up
> a snapshot of CVS before it was switched to subversion at
>
> http://ipython.scipy.org/tmp/scipy_cvs_2005-07-29.tgz
>
> This *should* build correctly on OS X.
>
I had more success with the snapshot above. It built, but I don't
know how "correctly"
during the build there were thousands of warnings and hundreds of
warnings of the form
gcc: build/src/scipy/linalg/calc_lworkmodule.c
powerpc-apple-darwin8-gcc-4.0.0: -framework: linker input file unused
because linking not done
powerpc-apple-darwin8-gcc-4.0.0: Accelerate: linker input file unused
because linking not done
also hundreds of warnings like
usr/bin/ld: warning multiple definitions of symbol _sinf
/usr/lib/gcc/powerpc-apple-darwin8/4.0.0/../../../libmx.dylib(single
module) definition of _sinf
/usr/lib/gcc/powerpc-apple-darwin8/4.0.0/../../../libSystem.dylib
(floating.o) definition of _sinf
when I ran the self tests I got some errors that didn't look good.
They would fill several pages
but most were of the form shown at the end of this message.
It ended the self test with
----------------------------------------------------------------------
Ran 150 tests in 0.547s
FAILED (errors=7)
<unittest.TextTestRunner object at 0x2352850>
>>>
So did it build correctly?
Also FYI to Chris Barker and Bob Ippolito
The cvs snapshot had this code in gnufcompiler.py
if sys.platform=='darwin':
target = os.environ.get('MACOSX_DEPLOYMENT_TARGET', None)
if target is None:
target = '10.3'
major, minor = target.split('.')
if int(minor) < 3:
minor = '3'
warnings.warn('Environment variable '
'MACOSX_DEPLOYMENT_TARGET reset to 10.3')
os.environ['MACOSX_DEPLOYMENT_TARGET'] = '%s.%s' % (major,
minor)
opt.extend(['-undefined', 'dynamic_lookup', '-bundle'])
else:
opt.append("-shared")
Looks like they cleaned up their act.
*******************
AlBook:/install/development/python/scientific/scipyinstall/scipy
smithsm$ python
Python 2.4.1 (#2, Mar 31 2005, 00:05:10)
[GCC 3.3 20030304 (Apple Computer, Inc. build 1666)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import scipy
>>> scipy.test()
exceptions.ImportError: Failure linking new module: /Library/
Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/
scipy/linalg/_flinalg.so: Symbol not found: _sprintf$LDBLStub
Referenced from: /Library/Frameworks/Python.framework/Versions/2.4/
lib/python2.4/site-packages/scipy/linalg/_flinalg.so
Expected in: dynamic lookup
!! No test file 'test_lib.py' found for <module 'scipy.lib' from
'...ackages/scipy/lib/__init__.pyc'>
!! No test file 'test_lena.py' found for <module 'scipy.plt.lena'
from '...te-packages/scipy/plt/lena.pyc'>
!! No test file 'test_build_py.py' found for <module
'scipy_distutils.command.build_py' from '...distutils/command/
build_py.pyc'>
!! No test file 'test_gistC.py' found for <module
'scipy.xplt.gistC' from '...e-packages/scipy/xplt/gistC.so'>
Found 4 tests for scipy.io.array_import
Found 1 tests for scipy.xxx.yyy
!! No test file 'test_xxx.py' found for <module 'scipy.xxx' from
'...ackages/scipy/xxx/__init__.pyc'>
!! No test file 'test_ccompiler.py' found for <module
'scipy_distutils.ccompiler' from '.../scipy_distutils/ccompiler.pyc'>
More information about the Pythonmac-SIG
mailing list