File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 2
2
3
3
# flake8: noqa
4
4
5
- ####### Fix the mim command crashes due to requirements version conflict. ######
5
+ ###### Fix mim command crashes problem if requirements version conflict. # ######
6
6
# `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.
9
9
#
10
10
# The entry point scripts create by `setuptools` use the `__requires__` feature
11
11
# for compatibility with `easy_install` but may cause mim crash when version
12
12
# conflict exists.
13
13
#
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.
17
17
#
18
18
# Related Links:
19
19
# - https://github.com/open-mmlab/mim/issues/143
You can’t perform that action at this time.
0 commit comments