[SciPy-user] Install problem - Overwriting message when importing scipy

Pearu Peterson pearu at scipy.org
Wed Dec 21 08:25:47 CST 2005

On Wed, 21 Dec 2005, Robert Kern wrote:

> Pearu Peterson wrote:
>> It turns out that round function that is defined in cephes/round.c, is
>> never called. When I renamed round to cephes_round, and modified cephes.h
>> and _cephesmodule.c accordingly, correct round functions is called and all
>> special tests pass succesfully.
>> But before applying this patch, I would like to understand why cephes
>> round function in not effective. Anyone have any ideas?
> I suspect that there is some other round() function which gets picked up during
> linking on Linux. Linking behaves differently on OS X and Windows so the Cephes
> routine gets used there.
> Also, be sure to update uses of round() in the other Cephes routines, too.

Right, I figured something like that can be happening but not how to fix 

However, I have tested succesfully the following patch for Linux:

pearu at p4:~/svn/scipy/Lib/special$ svn diff
Index: setup.py
--- setup.py    (revision 1491)
+++ setup.py    (working copy)
@@ -12,6 +12,8 @@
  #        define_macros.append(('NOINFINITIES',None))
  #        define_macros.append(('NONANS',None))

+    # Force using cephes round.
+    define_macros.append(('round','cephes_round'))

      # C libraries

Could someone on OS X and Windows systems test if the patch works on these 
platforms as well?


More information about the SciPy-user mailing list