Date: 21 Dec 2006 14:59:05 -0000 From: "Aho K.F.Li" <thinker@branda.to> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/107022: py-num is broken with default installation Message-ID: <20061221145905.25306.qmail@heaven.branda.to> Resent-Message-ID: <200612211530.kBLFUHEe086364@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 107022 >Category: ports >Synopsis: py-num is broken with default installation >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Dec 21 15:30:16 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Aho K.F. Li >Release: FreeBSD 7.0-CURRENT i386 >Organization: Thinker >Environment: System: FreeBSD cowboy.branda.to 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Sat Nov 4 >Description: Py-numpy is not work with default installation. It causes by inconsistent between site.cfg, generated by port, and package auto-discovery of system_info.py. The inconsistent is happen when alapack is installed before installing py-numpy. >How-To-Repeat: install alapack install port of py-numpy run python & import numpy python yell a run-time error >Fix: Copy following file into files/ . --- patch-numpy-distutils-system_info.py begins here --- --- numpy/distutils/system_info.py.orig Mon Jul 31 00:08:48 2006 +++ numpy/distutils/system_info.py Sun Dec 17 23:24:50 2006 @@ -855,6 +855,8 @@ atlas_1 = None for d in lib_dirs: atlas = self.check_libs2(d,atlas_libs,[]) + if atlas is not None: + atlas['libraries'].extend(['g2c', 'm', 'pthread']) lapack_atlas = self.check_libs2(d,['lapack_atlas'],[]) if atlas is not None: lib_dirs2 = [d] + self.combine_paths(d,['atlas*','ATLAS*']) @@ -1183,8 +1185,9 @@ atlas_version = None need_lapack = 0 need_blas = 0 + lapack_type = self.cp.get(self.section, 'lapack_type').strip() info = {} - if atlas_info: + if lapack_type == 'atlas' and atlas_info: version_info = atlas_info.copy() atlas_version = get_atlas_version(**version_info) if not atlas_info.has_key('define_macros'): --- patch-numpy-distutils-system_info.py ends here --- --- patch-site.cfg begins here --- --- site.cfg.orig Wed Aug 23 03:01:25 2006 +++ site.cfg Sun Dec 17 23:25:51 2006 @@ -1,3 +1,6 @@ +[DEFAULT] +lapack_type = blas + [atlas] library_dirs = /usr/lib/atlas/3dnow/ atlas_libs = lapack, blas --- patch-site.cfg ends here --- --- site.cfg begins here --- [DEFAULT] lapack_type = atlas [atlas] library_dirs = /usr/local/lib atlas_libs = alapack_r, f77blas_r, cblas_r, atlas_r --- site.cfg ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061221145905.25306.qmail>