Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions flit_core/flit_core/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,12 @@ def _module_load_ctx():
- Handlers on the root logger.
"""
logging_handlers = logging.root.handlers[:]
os.environ["FLIT_GETTING_VERSION"] = "1"
try:
yield
finally:
logging.root.handlers = logging_handlers
del os.environ["FLIT_GETTING_VERSION"]

def get_docstring_and_version_via_ast(target):
"""
Expand Down