mirror of
https://github.com/clearml/clearml-agent
synced 2025-03-15 16:01:56 +00:00
Fix package @ file:// with quoted (url style) links should not be ignored
This commit is contained in:
parent
2693c565ba
commit
fe6adbf110
@ -14,6 +14,7 @@ from pathlib2 import Path
|
|||||||
from pyhocon import ConfigTree
|
from pyhocon import ConfigTree
|
||||||
|
|
||||||
import six
|
import six
|
||||||
|
from six.moves.urllib.parse import unquote
|
||||||
import logging
|
import logging
|
||||||
from clearml_agent.definitions import PIP_EXTRA_INDICES
|
from clearml_agent.definitions import PIP_EXTRA_INDICES
|
||||||
from clearml_agent.helper.base import (
|
from clearml_agent.helper.base import (
|
||||||
@ -174,6 +175,8 @@ class MarkerRequirement(object):
|
|||||||
not self.uri or not self.uri.startswith("file://"):
|
not self.uri or not self.uri.startswith("file://"):
|
||||||
return
|
return
|
||||||
local_path = Path(self.uri[len("file://"):])
|
local_path = Path(self.uri[len("file://"):])
|
||||||
|
if not local_path.exists():
|
||||||
|
local_path = Path(unquote(self.uri)[len("file://"):])
|
||||||
if not local_path.exists():
|
if not local_path.exists():
|
||||||
line = self.line
|
line = self.line
|
||||||
if self.remove_local_file_ref():
|
if self.remove_local_file_ref():
|
||||||
|
Loading…
Reference in New Issue
Block a user