@@ -331,19 +331,19 @@ def pandas(*args):
331
331
numpy (* args )
332
332
333
333
334
- try :
334
+ try :
335
335
import pytz as _dummy_pytz
336
336
except ImportError :
337
337
print ("Installing required dependency: pytz" )
338
338
pytz (* args )
339
339
340
- try :
340
+ try :
341
341
import six as _dummy_six
342
342
except ImportError :
343
343
print ("Installing required dependency: six" )
344
344
six (* args )
345
345
346
- try :
346
+ try :
347
347
import dateutil as __dummy_dateutil
348
348
except ImportError :
349
349
print ("Installing required dependency: dateutil" )
@@ -360,7 +360,7 @@ def pandas(*args):
360
360
PyExc_ValueError,
361
361
- "abstime out of range (0.0 - 86400.0): %f", abstime);
362
362
+ "abstime out of range (0.0 - 86400.0): %f", (long long)abstime);
363
-
363
+
364
364
/* Calculate the date */
365
365
if (dInfoCalc_SetFromAbsDate(dinfo, absdate, calendar)) goto onError;
366
366
diff --git a/pandas/_libs/src/period_helper.c b/pandas/_libs/src/period_helper.c
@@ -373,9 +373,9 @@ def pandas(*args):
373
373
PyExc_ValueError,
374
374
- "second out of range (0.0 - <60.0; <61.0 for 23:59): %f", second);
375
375
+ "second out of range (0.0 - <60.0; <61.0 for 23:59): %f", (long long)second);
376
-
376
+
377
377
dinfo->abstime = (double)(hour * 3600 + minute * 60) + second;
378
-
378
+
379
379
"""
380
380
cflags = "-allowcpp" if sys .implementation .name == "graalpython" else ""
381
381
install_from_url ("https://files.pythonhosted.org/packages/ee/aa/90c06f249cf4408fa75135ad0df7d64c09cf74c9870733862491ed5f3a50/pandas-0.20.3.tar.gz" , patch = patch , extra_opts = args , cflags = cflags )
@@ -410,7 +410,7 @@ def install_from_url(url, patch=None, extra_opts=[], cflags=""):
410
410
elif name .endswith (".zip" ):
411
411
system ("unzip -u %s/%s -d %s" % (tempdir , name , tempdir ))
412
412
bare_name = name [:- len (".zip" )]
413
-
413
+
414
414
if patch :
415
415
with open ("%s/%s.patch" % (tempdir , bare_name ), "w" ) as f :
416
416
f .write (patch )
0 commit comments