Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[action] [PR:13847] Add PYTHON3_SWSSCOMMON as build time dependency to Mellanox platform API #13905

Merged
merged 1 commit into from
Feb 21, 2023

Commits on Feb 21, 2023

  1. Add PYTHON3_SWSSCOMMON as build time dependency to Mellanox platform …

    …API (sonic-net#13847)
    
    - Why I did it
    Add PYTHON3_SWSSCOMMON as build time dependency to Mellanox platform API to avoid issue like:
    
    19:34:11  ImportError while loading conftest '/sonic/platform/mellanox/mlnx-platform-api/tests/conftest.py'.
    19:34:11  tests/conftest.py:28: in <module>
    19:34:11      from sonic_platform import utils
    19:34:11  sonic_platform/__init__.py:18: in <module>
    19:34:11      from sonic_platform import *
    19:34:11  sonic_platform/platform.py:28: in <module>
    19:34:11      raise ImportError(str(e) + "- required module not found")
    19:34:11  E   ImportError: No module named 'swsscommon'- required module not found- required module not found
    19:34:11  [  FAIL LOG END  ] [ target/python-wheels/bullseye/mlnx_platform_api-1.0-py3-none-any.whl ]
    The issue only happens when calling below command:
    
    make target/python-wheels/bullseye/mlnx_platform_api-1.0-py3-none-any.whl 
    
    - How I did it
    Add PYTHON3_SWSSCOMMON as build time dependency to Mellanox platform API
    
    - How to verify it
    Run build
    Junchao-Mellanox authored and mssonicbld committed Feb 21, 2023
    Configuration menu
    Copy the full SHA
    63807a2 View commit details
    Browse the repository at this point in the history