@@ -380,7 +380,7 @@ def srcpath(name=None, suffix='.pyx', subdir='src'):
380
380
'pandas/src/datetime/np_datetime_strings.h' ]
381
381
382
382
# some linux distros require it
383
- libraries = ['m' ] if 'win ' not in sys .platform else []
383
+ libraries = ['m' ] if 'win32 ' not in sys .platform else []
384
384
385
385
lib_ext = Extension ('pandas.lib' ,
386
386
depends = lib_depends ,
@@ -393,6 +393,11 @@ def srcpath(name=None, suffix='.pyx', subdir='src'):
393
393
# extra_compile_args=['-Wconversion']
394
394
)
395
395
396
+ sparse_ext = Extension ('pandas._sparse' ,
397
+ sources = [srcpath ('sparse' , suffix = suffix )],
398
+ include_dirs = [np .get_include ()],
399
+ libraries = libraries )
400
+
396
401
period_ext = Extension ('pandas._period' ,
397
402
depends = plib_depends + ['pandas/src/numpy_helper.h' ,
398
403
'pandas/src/period.h' ],
@@ -402,10 +407,6 @@ def srcpath(name=None, suffix='.pyx', subdir='src'):
402
407
include_dirs = [np .get_include ()])
403
408
404
409
405
- sparse_ext = Extension ('pandas._sparse' ,
406
- sources = [srcpath ('sparse' , suffix = suffix )],
407
- include_dirs = [np .get_include ()])
408
-
409
410
sandbox_ext = Extension ('pandas._sandbox' ,
410
411
sources = [srcpath ('sandbox' , suffix = suffix )],
411
412
include_dirs = [np .get_include ()])
0 commit comments