Skip to content

Commit

Permalink
#521 Fix pyreq_loader minimal version (#551)
Browse files Browse the repository at this point in the history
Signed-off-by: Uilian Ries <uilianries@gmail.com>
  • Loading branch information
uilianries committed Mar 16, 2021
1 parent d6f6b20 commit 623742b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpt/packager.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ def load_cf_class(path, conan_api):
conan_api.create_app()
remotes = conan_api.app.cache.registry.load_remotes()
conan_api.app.python_requires.enable_remotes(remotes=remotes)
conan_api.app.pyreq_loader.enable_remotes(remotes=remotes)
if client_version < Version("1.20.0"):
return conan_api.app.loader.load_class(path)
elif client_version < Version("1.21.0"):
return conan_api.app.loader.load_basic(path)
else:
conan_api.app.pyreq_loader.enable_remotes(remotes=remotes)
return conan_api.app.loader.load_named(path, None, None, None, None)


Expand Down

0 comments on commit 623742b

Please sign in to comment.