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

scipy-svn at scipy.org scipy-svn at scipy.org
Thu Nov 16 14:19:55 CST 2006


Author: edschofield
Date: 2006-11-16 14:19:52 -0600 (Thu, 16 Nov 2006)
New Revision: 2321

Modified:
   trunk/Lib/sandbox/montecarlo/setup.py
Log:
Modified montecarlo/setup.py to compile in randomkit.c statically.


Modified: trunk/Lib/sandbox/montecarlo/setup.py
===================================================================
--- trunk/Lib/sandbox/montecarlo/setup.py	2006-11-16 12:26:52 UTC (rev 2320)
+++ trunk/Lib/sandbox/montecarlo/setup.py	2006-11-16 20:19:52 UTC (rev 2321)
@@ -7,18 +7,12 @@
 
     config = Configuration('montecarlo', parent_package, top_path)
 
-    # This code requires 'randomkit' to have been built using 'add_extension' in
-    # numpy/random/setup.py.
+    # This code requires 'randomkit.c' and 'randomkit.h' to have been copied
+    # to (or symlinked to) montecarlo/src/.
 
-    random_lib_dir = dirname(numpy.random.__file__)
-
     config.add_extension('_intsampler',
-              include_dirs = [numpy.get_numpy_include(), random_lib_dir],
-              libraries=['randomkit'],
-              library_dirs=[random_lib_dir],
-              runtime_library_dirs=[random_lib_dir],
               sources = [join('src', f) for f in
-                        ['_intsamplermodule.c', 'compact5table.c']])
+                        ['_intsamplermodule.c', 'compact5table.c', 'randomkit.c']])
     
     config.add_data_dir('tests')
     config.add_data_dir('examples')



More information about the Scipy-svn mailing list