File tree 3 files changed +19
-4
lines changed
3 files changed +19
-4
lines changed Original file line number Diff line number Diff line change 108
108
echo " activate pandas-dev"
109
109
source activate pandas-dev
110
110
111
+ # Explicitly set an environment variable indicating that this is pandas' CI environment.
112
+ #
113
+ # This allows us to enable things like -Werror that shouldn't be activated in
114
+ # downstream CI jobs that may also build pandas from source.
115
+ export PANDAS_CI=1
116
+
111
117
echo
112
118
echo " remove any installed pandas package"
113
119
echo " w/o removing anything else"
Original file line number Diff line number Diff line change @@ -33,6 +33,14 @@ Bug fixes
33
33
34
34
.. ---------------------------------------------------------------------------
35
35
36
+ .. _whatsnew_115.other :
37
+
38
+ Other
39
+ ~~~~~
40
+ - Only set ``-Werror `` as a compiler flag in the CI jobs (:issue: `33315 `, :issue: `33314 `)
41
+
42
+ .. ---------------------------------------------------------------------------
43
+
36
44
.. _whatsnew_115.contributors :
37
45
38
46
Contributors
Original file line number Diff line number Diff line change @@ -409,15 +409,16 @@ def run(self):
409
409
endian_macro = [("__LITTLE_ENDIAN__" , "1" )]
410
410
411
411
412
+ extra_compile_args = []
413
+ extra_link_args = []
412
414
if is_platform_windows ():
413
- extra_compile_args = []
414
- extra_link_args = []
415
415
if debugging_symbols_requested :
416
416
extra_compile_args .append ("/Z7" )
417
417
extra_link_args .append ("/DEBUG" )
418
418
else :
419
- extra_compile_args = ["-Werror" ]
420
- extra_link_args = []
419
+ # PANDAS_CI=1 is set by ci/setup_env.sh
420
+ if os .environ .get ("PANDAS_CI" , "0" ) == "1" :
421
+ extra_compile_args .append ("-Werror" )
421
422
if debugging_symbols_requested :
422
423
extra_compile_args .append ("-g" )
423
424
You can’t perform that action at this time.
0 commit comments