diff --git a/airbyte-integrations/connectors/source-file-secure/setup.py b/airbyte-integrations/connectors/source-file-secure/setup.py index 180e5b987406..f2fb71c1899a 100644 --- a/airbyte-integrations/connectors/source-file-secure/setup.py +++ b/airbyte-integrations/connectors/source-file-secure/setup.py @@ -10,7 +10,10 @@ def local_dependency(name: str) -> str: """Returns a path to a local package.""" - return f"{name} @ file://{Path.cwd().parent / name}" + if os.environ.get("DAGGER_BUILD"): + return f"{name} @ file:///local_dependencies/{name}" + else: + return f"{name} @ file://{Path.cwd().parent / name}" MAIN_REQUIREMENTS = [