diff options
| author | Yuval Adam <_@yuv.al> | 2024-05-09 15:19:24 +0200 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2024-05-10 12:55:22 +0200 |
| commit | c2155cc80f7c5baa7feb636fd3eb8da36cccadf4 (patch) | |
| tree | d0c8798d8f68d098bb12cb1e60f1aad701f9779f /cli/__init__.py | |
| parent | a2409a50c65a140319bfc99531dcc4d2354e4514 (diff) | |
Attempt netlify build workaround
Diffstat (limited to 'cli/__init__.py')
| -rw-r--r-- | cli/__init__.py | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/cli/__init__.py b/cli/__init__.py index fd8ff66..c6f8f27 100644 --- a/cli/__init__.py +++ b/cli/__init__.py @@ -1,8 +1,15 @@ +import os + from .base import cli from .build import build -from .clean import clean -from .ghpr import ghpr -from .scan import scan -__all__ = [cli, build, clean, ghpr, scan] +__all__ = [cli, build] + +# ugly workaround to avoid build failures in Python 3.8 +if "NETLIFY" not in os.environ: + from .clean import clean + from .ghpr import ghpr + from .scan import scan + + __all__ += [clean, ghpr, scan] |
