[Scipy-svn] r2329 - trunk/Lib/sandbox/montecarlo

scipy-svn at scipy.org scipy-svn at scipy.org
Wed Nov 22 13:01:02 CST 2006


Author: edschofield
Date: 2006-11-22 13:00:56 -0600 (Wed, 22 Nov 2006)
New Revision: 2329

Modified:
   trunk/Lib/sandbox/montecarlo/setup.py
Log:
Improved robustness of path selection in montecarlo/setup.py


Modified: trunk/Lib/sandbox/montecarlo/setup.py
===================================================================
--- trunk/Lib/sandbox/montecarlo/setup.py	2006-11-22 18:31:04 UTC (rev 2328)
+++ trunk/Lib/sandbox/montecarlo/setup.py	2006-11-22 19:00:56 UTC (rev 2329)
@@ -7,7 +7,7 @@
 
     config = Configuration('montecarlo', parent_package, top_path)
     
-    if not (exists('src/randomkit.c') and exists('src/randomkit.h')):
+    if not (exists(join(config.package_path, 'src', 'randomkit.c')) and exists(join(config.package_path, 'src', 'randomkit.h'))):
         raise OSError, "Please copy or symlink randomkit.c and randomkit.h to montecarlo/src/ from numpy/random/mtrand/ in the NumPy source tree!"
     
     config.add_extension('_intsampler',



More information about the Scipy-svn mailing list