Skip to content

Commit

Permalink
Yehc/bump version to v0.10.5 (#1572)
Browse files Browse the repository at this point in the history
* fix check builtin module

* bump version to v0.10.5

* bump version to v0.10.5
  • Loading branch information
HAOCHENYE authored Sep 20, 2024
1 parent 5e736b1 commit c9b5996
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ English | [简体中文](README_zh-CN.md)

## What's New

v0.10.4 was released on 2024-4-23.
v0.10.5 was released on 2024-9-11.

Highlights:

Expand Down
2 changes: 1 addition & 1 deletion README_zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@

## 最近进展

最新版本 v0.10.4 在 2024.4.23 发布。
最新版本 v0.10.5 在 2024.9.11 发布。

版本亮点:

Expand Down
4 changes: 4 additions & 0 deletions docs/en/notes/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog of v0.x

## v0.10.5 (11/9/2024)

- Fix `_is_builtin_module`. by [@HAOCHENYE](https://github.com/HAOCHENYE) in https://github.com/open-mmlab/mmengine/pull/1571

## v0.10.4 (23/4/2024)

### New Features & Enhancements
Expand Down
3 changes: 2 additions & 1 deletion mmengine/config/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from mmengine.utils import check_file_exist

PYTHON_ROOT_DIR = osp.dirname(osp.dirname(sys.executable))
SYSTEM_PYTHON_PREFIX = '/usr/lib/python'

MODULE2PACKAGE = {
'mmcls': 'mmcls',
Expand Down Expand Up @@ -177,7 +178,7 @@ def _is_builtin_module(module_name: str) -> bool:
origin_path = osp.abspath(origin_path)
if ('site-package' in origin_path or 'dist-package' in origin_path
or not origin_path.startswith(
(PYTHON_ROOT_DIR, '/usr/lib/python'))):
(PYTHON_ROOT_DIR, SYSTEM_PYTHON_PREFIX))):
return False
else:
return True
Expand Down
2 changes: 1 addition & 1 deletion mmengine/version.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright (c) OpenMMLab. All rights reserved.

__version__ = '0.10.4'
__version__ = '0.10.5'


def parse_version_info(version_str):
Expand Down

0 comments on commit c9b5996

Please sign in to comment.