File tree Expand file tree Collapse file tree 1 file changed +37
-37
lines changed Expand file tree Collapse file tree 1 file changed +37
-37
lines changed Original file line number Diff line number Diff line change @@ -187,49 +187,49 @@ def _initEnvironment():
187187 """Construction and basic setup of the state.env variable."""
188188
189189 ourEnv = {}
190- preserveVars = """
191- DYLD_LIBRARY_PATH
192- EUPS_DIR
193- EUPS_LOCK_PID
194- EUPS_PATH
195- EUPS_SHELL
196- EUPS_USERDATA
197- LD_LIBRARY_PATH
198- PATH
199- SHELL
200- TEMP
201- TERM
202- TMP
203- TMPDIR
204- XPA_PORT
205- CONDA_BUILD_SYSROOT
206- SDKROOT
207- """ . split ()
208-
209- codeCheckerVars = """
210- LD_PRELOAD
211- CC_LOGGER_FILE
212- CC_LOGGER_GCC_LIKE
213- CC_LIB_DIR
214- CC_DATA_FILES_DIR
215- CC_LOGGER_BIN
216- """ . split ()
190+ preserveVars = [
191+ " DYLD_LIBRARY_PATH" ,
192+ " EUPS_DIR" ,
193+ " EUPS_LOCK_PID" ,
194+ " EUPS_PATH" ,
195+ " EUPS_SHELL" ,
196+ " EUPS_USERDATA" ,
197+ " LD_LIBRARY_PATH" ,
198+ " PATH" ,
199+ " SHELL" ,
200+ " TEMP" ,
201+ " TERM" ,
202+ " TMP" ,
203+ " TMPDIR" ,
204+ " XPA_PORT" ,
205+ " CONDA_BUILD_SYSROOT" ,
206+ " SDKROOT" ,
207+ ]
208+
209+ codeCheckerVars = [
210+ " LD_PRELOAD" ,
211+ " CC_LOGGER_FILE" ,
212+ " CC_LOGGER_GCC_LIKE" ,
213+ " CC_LIB_DIR" ,
214+ " CC_DATA_FILES_DIR" ,
215+ " CC_LOGGER_BIN" ,
216+ ]
217217
218218 # The list of implicit multithreading environment variables here
219219 # is taken from lsst.utils.disable_implicit_threading(), but
220220 # has to be put here for dependency ordering reasons, and
221221 # to ensure these are set prior to any instantiation of pytest
222222 # or any code that may implicitly spawn threads.
223- implicitMultithreadingVars = """
224- OPENBLAS_NUM_THREADS
225- GOTO_NUM_THREADS
226- OMP_NUM_THREADS
227- MKL_NUM_THREADS
228- MKL_DOMAIN_NUM_THREADS
229- MPI_NUM_THREADS
230- NUMEXPR_NUM_THREADS
231- NUMEXPR_MAX_THREADS
232- """ . split ()
223+ implicitMultithreadingVars = [
224+ " OPENBLAS_NUM_THREADS" ,
225+ " GOTO_NUM_THREADS" ,
226+ " OMP_NUM_THREADS" ,
227+ " MKL_NUM_THREADS" ,
228+ " MKL_DOMAIN_NUM_THREADS" ,
229+ " MPI_NUM_THREADS" ,
230+ " NUMEXPR_NUM_THREADS" ,
231+ " NUMEXPR_MAX_THREADS" ,
232+ ]
233233
234234 for key in preserveVars :
235235 if key in os .environ :
You can’t perform that action at this time.
0 commit comments