Skip to content

Commit 44a2734

Browse files
committed
BLD: link against math library explicitly. close #1955
1 parent 3ae4066 commit 44a2734

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

pandas/src/generate_code.py

-4
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@
3535
cimport util
3636
from util cimport is_array, _checknull, _checknan
3737
38-
cdef extern from "math.h":
39-
double sqrt(double x)
40-
double fabs(double)
41-
4238
# import datetime C API
4339
PyDateTime_IMPORT
4440

pandas/src/generated.pyx

-4
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ ctypedef unsigned char UChar
3232
cimport util
3333
from util cimport is_array, _checknull, _checknan
3434

35-
cdef extern from "math.h":
36-
double sqrt(double x)
37-
double fabs(double)
38-
3935
# import datetime C API
4036
PyDateTime_IMPORT
4137

setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@ def srcpath(name=None, suffix='.pyx', subdir='src'):
384384
'pandas/src/datetime/np_datetime.c',
385385
'pandas/src/datetime/np_datetime_strings.c'],
386386
include_dirs=[np.get_include()],
387+
libraries=['m'], # some linux distros require it
387388
# pyrex_gdb=True,
388389
# extra_compile_args=['-Wconversion']
389390
)

0 commit comments

Comments
 (0)