ports/107058: py-numpy is not work with default installation

Aho K.F.Li thinker at branda.to
Fri Dec 22 01:50:13 UTC 2006


>Number:         107058
>Category:       ports
>Synopsis:       py-numpy is not work 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:   Fri Dec 22 01:50:11 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 2 0:49:51 CST 2006 thinker at cowboy.branda.to:/usr/src/sys/i386/compile/cowboy i386


	
>Description:
	py-numpy is broken with default installation when alapack is
	installed before py-numpy being.
	
>How-To-Repeat:
	install alapack
	make the port of py-numpy
	run python & import py-numpy
	python yells a run-time errror
	
>Fix:

	copy following files into py-numpy/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:



More information about the freebsd-ports-bugs mailing list