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 111
111
echo " activate pandas-dev"
112
112
source activate pandas-dev
113
113
114
+ # Explicitly set an environment variable indicating that this is pandas' CI environment.
115
+ #
116
+ # This allows us to enable things like -Werror that shouldn't be activated in
117
+ # downstream CI jobs that may also build pandas from source.
118
+ export PANDAS_CI=1
119
+
114
120
echo
115
121
echo " remove any installed pandas package"
116
122
echo " w/o removing anything else"
Original file line number Diff line number Diff line change @@ -34,6 +34,14 @@ Bug fixes
34
34
35
35
.. ---------------------------------------------------------------------------
36
36
37
+ .. _whatsnew_115.other :
38
+
39
+ Other
40
+ ~~~~~
41
+ - Only set ``-Werror `` as a compiler flag in the CI jobs (:issue: `33315 `, :issue: `33314 `)
42
+
43
+ .. ---------------------------------------------------------------------------
44
+
37
45
.. _whatsnew_115.contributors :
38
46
39
47
Contributors
Original file line number Diff line number Diff line change @@ -427,15 +427,16 @@ def run(self):
427
427
endian_macro = [("__LITTLE_ENDIAN__" , "1" )]
428
428
429
429
430
+ extra_compile_args = []
431
+ extra_link_args = []
430
432
if is_platform_windows ():
431
- extra_compile_args = []
432
- extra_link_args = []
433
433
if debugging_symbols_requested :
434
434
extra_compile_args .append ("/Z7" )
435
435
extra_link_args .append ("/DEBUG" )
436
436
else :
437
- extra_compile_args = ["-Werror" ]
438
- extra_link_args = []
437
+ # PANDAS_CI=1 is set by ci/setup_env.sh
438
+ if os .environ .get ("PANDAS_CI" , "0" ) == "1" :
439
+ extra_compile_args .append ("-Werror" )
439
440
if debugging_symbols_requested :
440
441
extra_compile_args .append ("-g" )
441
442
You can’t perform that action at this time.
0 commit comments