Skip to content

Commit f52404d

Browse files
committed
CI/BLD: suppress cython warnings
1 parent 834936b commit f52404d

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

ci/build_docs.sh

+4
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ if [ x"$DOC_BUILD" != x"" ]; then
3636
echo ./make.py
3737
./make.py
3838

39+
echo ########################
40+
echo # Create and send docs #
41+
echo ########################
42+
3943
cd /tmp/doc/build/html
4044
git config --global user.email "[email protected]"
4145
git config --global user.name "pandas-docs-bot"

setup.py

+11-6
Original file line numberDiff line numberDiff line change
@@ -439,22 +439,25 @@ def pxd(name):
439439
obj = Extension('pandas.%s' % name,
440440
sources=sources,
441441
depends=data.get('depends', []),
442-
include_dirs=include)
442+
include_dirs=include,
443+
extra_compile_args=['-w'])
443444

444445
extensions.append(obj)
445446

446447

447448
sparse_ext = Extension('pandas._sparse',
448449
sources=[srcpath('sparse', suffix=suffix)],
449450
include_dirs=[],
450-
libraries=libraries)
451+
libraries=libraries,
452+
extra_compile_args=['-w'])
451453

452454
extensions.extend([sparse_ext])
453455

454456
testing_ext = Extension('pandas._testing',
455457
sources=[srcpath('testing', suffix=suffix)],
456458
include_dirs=[],
457-
libraries=libraries)
459+
libraries=libraries,
460+
extra_compile_args=['-w'])
458461

459462
extensions.extend([testing_ext])
460463

@@ -474,7 +477,8 @@ def pxd(name):
474477
subdir='msgpack')],
475478
language='c++',
476479
include_dirs=['pandas/src/msgpack'] + common_include,
477-
define_macros=macros)
480+
define_macros=macros,
481+
extra_compile_args=['-w'])
478482
unpacker_ext = Extension('pandas.msgpack._unpacker',
479483
depends=['pandas/src/msgpack/unpack.h',
480484
'pandas/src/msgpack/unpack_define.h',
@@ -484,7 +488,8 @@ def pxd(name):
484488
subdir='msgpack')],
485489
language='c++',
486490
include_dirs=['pandas/src/msgpack'] + common_include,
487-
define_macros=macros)
491+
define_macros=macros,
492+
extra_compile_args=['-w'])
488493
extensions.append(packer_ext)
489494
extensions.append(unpacker_ext)
490495

@@ -508,7 +513,7 @@ def pxd(name):
508513
include_dirs=['pandas/src/ujson/python',
509514
'pandas/src/ujson/lib',
510515
'pandas/src/datetime'] + common_include,
511-
extra_compile_args=['-D_GNU_SOURCE'])
516+
extra_compile_args=['-D_GNU_SOURCE', '-w'])
512517

513518

514519
extensions.append(ujson_ext)

0 commit comments

Comments
 (0)