Skip to content

Commit 0badc55

Browse files
wesmChang She
authored and
Chang She
committed
BLD: win32 fix
1 parent 39551f9 commit 0badc55

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

setup.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,9 @@ def srcpath(name=None, suffix='.pyx', subdir='src'):
388388

389389
npymath_info = get_info('npymath')
390390

391+
npymath_libdir = npymath_info['library_dirs'][0]
392+
npymath_libdir = npymath_libdir.replace('\\\\', '\\')
393+
391394
ujson_ext = Extension('pandas._ujson',
392395
sources=['pandas/src/ujson/python/ujson.c',
393396
'pandas/src/ujson/python/objToJSON.c',
@@ -398,8 +401,8 @@ def srcpath(name=None, suffix='.pyx', subdir='src'):
398401
'pandas/src/ujson/lib',
399402
np.get_include()],
400403
libraries=['npymath'],
401-
library_dirs=npymath_info['library_dirs'],
402-
#extra_link_args=[get_info('npymath').libs()]
404+
library_dirs=[npymath_libdir],
405+
# extra_link_args=[get_pkg_info('npymath').libs()]
403406
#extra_info=get_info('npymath')
404407
)
405408

0 commit comments

Comments
 (0)