Skip to content

Commit c8703b7

Browse files
committed
refine(mim/__init__.py): refine the comments
1 parent 7eed082 commit c8703b7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

mim/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22

33
# flake8: noqa
44

5-
####### Fix the mim command crashes due to requirements version conflict. ######
5+
###### Fix mim command crashes problem if requirements version conflict. #######
66
# `pkg_resources` checks for a `__requires__` attribute in the `__main__` module
7-
# when initializing the default working set, and uses this to ensure a suitable
8-
# version of each affected distribution is activated.
7+
# when initializing the default working set, and resolves its dependency to
8+
# ensure a suitable version of each affected distribution is activated.
99
#
1010
# The entry point scripts create by `setuptools` use the `__requires__` feature
1111
# for compatibility with `easy_install` but may cause mim crash when version
1212
# conflict exists.
1313
#
14-
# Hence, we here remove the `__requires__` declare in mim entry point script before
15-
# importing pkg_resources to handle this situation. This workaround works fine so
16-
# far, but not sure if it would cause other unknown problems or not.
14+
# To handle this situation, we set the `__requires__` declared in mim entry point
15+
# script from 'openmim' to '' before importing pkg_resources. This workaround works
16+
# fine so far, but not sure if it would cause other unknown problems or not.
1717
#
1818
# Related Links:
1919
# - https://github.com/open-mmlab/mim/issues/143

0 commit comments

Comments
 (0)