MCPcopy Create free account
hub / github.com/pymupdf/PyMuPDF / set_if_unset

Function set_if_unset

scripts/gh_release.py:268–274  ·  view source on GitHub ↗
(name, value)

Source from the content-addressed store, hash-verified

266 env_extra = dict()
267
268 def set_if_unset(name, value):
269 v = os.environ.get(name)
270 if v is None:
271 log( f'Setting environment {name=} to {value=}')
272 env_extra[ name] = value
273 else:
274 log( f'Not changing {name}={v!r} to {value!r}')
275 set_if_unset( 'CIBW_BUILD_VERBOSITY', '1')
276 # We exclude pp* because of `fitz_wrap.obj : error LNK2001: unresolved
277 # external symbol PyUnicode_DecodeRawUnicodeEscape`.

Callers 1

buildFunction · 0.85

Calls 2

logFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…