[SciPy-Dev] ANN: Numpy 1.6.0 beta 1

Derek Homeier derek@astro.physik.uni-goettingen...
Wed Mar 23 16:51:04 CDT 2011


On 23 Mar 2011, at 22:08, Derek Homeier wrote:

> I managed work around this by building with
> mkdir -p build/py3k/numpy/compat
> PYTHONPATH=%b/build/py3k/numpy/compat %p/bin/python%type_raw[python]
> setup.py build
>
> (%b is a placeholder for the fink build directory), but I suspect
> that's not the desired
> way to have the build work, and anyway then the build fails soon
> afterwards on
>
> RefactoringTool: /scratch/fink.build/numpy-py32-1.6.0b1-1/
> numpy-1.6.0b1/build/py3k/numpy/core/defchararray.py
> Traceback (most recent call last):
>   File "setup.py", line 201, in <module>
>     setup_package()
>   File "setup.py", line 178, in setup_package
>     from numpy.distutils.core import setup
>   File "/scratch/fink.build/numpy-py32-1.6.0b1-1/numpy-1.6.0b1/numpy/
> distutils/core.py", line 25, in <module>
>     from numpy.distutils.command import config, config_compiler, \
>   File "/scratch/fink.build/numpy-py32-1.6.0b1-1/numpy-1.6.0b1/numpy/
> distutils/command/build_ext.py", line 16, in <module>
>     from numpy.distutils.system_info import combine_paths
>   File "/scratch/fink.build/numpy-py32-1.6.0b1-1/numpy-1.6.0b1/numpy/
> distutils/system_info.py", line 1242
>     except Exception, msg: # failed to get version from file -- maybe
> on Windows
>                     ^
> SyntaxError: invalid syntax

As an update; since that exception did not use "msg" I decided to  
comment it out to
get past that point, only to fail later on, but I am not sure whether  
the failure now is
due to my tweaking of PYTHONPATH or a refactoring issue (it comes down  
to a
non-refactored "print" of course, but I am wondering about all the  
path warnings)

Cheers,
						Derek

RefactoringTool: /scratch/fink.build/numpy-py32-1.6.0b1-1/ 
numpy-1.6.0b1/build/py3k/numpy/core/defchararray.py
non-existing path in 'numpy/distutils': 'site.cfg'
F2PY Version 2
blas_opt_info:
   FOUND:
     extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
     define_macros = [('NO_ATLAS_INFO', 3)]
     extra_compile_args = ['-msse3', '-I/System/Library/Frameworks/ 
vecLib.framework/Headers']

non-existing path in 'numpy/lib': 'benchmarks'
lapack_opt_info:
/scratch/fink.build/numpy-py32-1.6.0b1-1/numpy-1.6.0b1/numpy/distutils/ 
system_info.py:531: UserWarning: Specified path  is invalid.
   warnings.warn('Specified path %s is invalid.' % d)
   FOUND:
     extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
     define_macros = [('NO_ATLAS_INFO', 3)]
     extra_compile_args = ['-msse3']

non-existing path in '': 'doc/cython/'
non-existing path in '': 'doc/pyrex/'
non-existing path in '': 'doc/swig/'
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands -- 
compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands -- 
fcompiler options
running build_src
build_src
building py_modules sources
creating build
creating build/src.macosx-10.5-i386-3.2
creating build/src.macosx-10.5-i386-3.2/numpy
creating build/src.macosx-10.5-i386-3.2/numpy/distutils
building library "npymath" sources
Traceback (most recent call last):
   File "setup.py", line 201, in <module>
     setup_package()
   File "setup.py", line 194, in setup_package
     configuration=configuration )
   File "/scratch/fink.build/numpy-py32-1.6.0b1-1/numpy-1.6.0b1/numpy/ 
distutils/core.py", line 186, in setup
     return old_setup(**new_attr)
   File "/sw/lib/python3.2/distutils/core.py", line 149, in setup
     dist.run_commands()
   File "/sw/lib/python3.2/distutils/dist.py", line 919, in run_commands
     self.run_command(cmd)
   File "/sw/lib/python3.2/distutils/dist.py", line 938, in run_command
     cmd_obj.run()
   File "/scratch/fink.build/numpy-py32-1.6.0b1-1/numpy-1.6.0b1/numpy/ 
distutils/command/build.py", line 37, in run
     old_build.run(self)
   File "/sw/lib/python3.2/distutils/command/build.py", line 128, in run
     self.run_command(cmd_name)
   File "/sw/lib/python3.2/distutils/cmd.py", line 315, in run_command
     self.distribution.run_command(command)
   File "/sw/lib/python3.2/distutils/dist.py", line 938, in run_command
     cmd_obj.run()
   File "/scratch/fink.build/numpy-py32-1.6.0b1-1/numpy-1.6.0b1/numpy/ 
distutils/command/build_src.py", line 152, in run
     self.build_sources()
   File "/scratch/fink.build/numpy-py32-1.6.0b1-1/numpy-1.6.0b1/numpy/ 
distutils/command/build_src.py", line 163, in build_sources
     self.build_library_sources(*libname_info)
   File "/scratch/fink.build/numpy-py32-1.6.0b1-1/numpy-1.6.0b1/numpy/ 
distutils/command/build_src.py", line 298, in build_library_sources
     sources = self.generate_sources(sources, (lib_name, build_info))
   File "/scratch/fink.build/numpy-py32-1.6.0b1-1/numpy-1.6.0b1/numpy/ 
distutils/command/build_src.py", line 385, in generate_sources
     source = func(extension, build_dir)
   File "numpy/core/setup.py", line 694, in get_mathlib_info
     st = config_cmd.try_link('int main(void) { return 0;}')
   File "/sw/lib/python3.2/distutils/command/config.py", line 245, in  
try_link
     self._check_compiler()
   File "/scratch/fink.build/numpy-py32-1.6.0b1-1/numpy-1.6.0b1/numpy/ 
distutils/command/config.py", line 75, in _check_compiler
     c_compiler=self.compiler)
   File "/scratch/fink.build/numpy-py32-1.6.0b1-1/numpy-1.6.0b1/numpy/ 
distutils/fcompiler/__init__.py", line 817, in new_fcompiler
     load_all_fcompiler_classes()
   File "/scratch/fink.build/numpy-py32-1.6.0b1-1/numpy-1.6.0b1/numpy/ 
distutils/fcompiler/__init__.py", line 728, in  
load_all_fcompiler_classes
     __import__ (module_name)
   File "/scratch/fink.build/numpy-py32-1.6.0b1-1/numpy-1.6.0b1/numpy/ 
distutils/fcompiler/pathf95.py", line 36
     print compiler.get_version()
                  ^
SyntaxError: invalid syntax


More information about the SciPy-Dev mailing list