@@ -207,6 +207,7 @@ def initialize_options(self):
207207 base = pjoin ('pandas' ,'src' )
208208 dt = pjoin (base ,'datetime' )
209209 src = base
210+ util = pjoin ('pandas' ,'util' )
210211 parser = pjoin (base ,'parser' )
211212 ujson_python = pjoin (base ,'ujson' ,'python' )
212213 ujson_lib = pjoin (base ,'ujson' ,'lib' )
@@ -220,6 +221,7 @@ def initialize_options(self):
220221 pjoin (ujson_python ,'JSONtoObj.c' ),
221222 pjoin (ujson_lib ,'ultrajsonenc.c' ),
222223 pjoin (ujson_lib ,'ultrajsondec.c' ),
224+ pjoin (util ,'move.c' ),
223225 ]
224226
225227 for root , dirs , files in os .walk ('pandas' ):
@@ -476,7 +478,7 @@ def pxd(name):
476478extensions .extend ([testing_ext ])
477479
478480#----------------------------------------------------------------------
479- # msgpack stuff here
481+ # msgpack
480482
481483if sys .byteorder == 'big' :
482484 macros = [('__BIG_ENDIAN__' , '1' )]
@@ -507,6 +509,9 @@ def pxd(name):
507509extensions .append (packer_ext )
508510extensions .append (unpacker_ext )
509511
512+ #----------------------------------------------------------------------
513+ # ujson
514+
510515if suffix == '.pyx' and 'setuptools' in sys .modules :
511516 # undo dumb setuptools bug clobbering .pyx sources back to .c
512517 for ext in extensions :
@@ -532,10 +537,12 @@ def pxd(name):
532537
533538extensions .append (ujson_ext )
534539
540+ #----------------------------------------------------------------------
541+ # util
535542# extension for pseudo-safely moving bytes into mutable buffers
536543_move_ext = Extension ('pandas.util._move' ,
537544 depends = [],
538- sources = ['pandas/util/_move .c' ])
545+ sources = ['pandas/util/move .c' ])
539546extensions .append (_move_ext )
540547
541548
0 commit comments