Skip to content

Commit ce51894

Browse files
authored
[Y-Cable] add the definition inside setup.py to include sonic_y_cable.credo as a package (sonic-net#211)
Signed-off-by: vaibhav-dahiya <[email protected]> Curreently the way python wheel includes packages is all the subdirectories inside a package need to be also included for them to be a package. Since in the refactor for multiple vendor Y-Cable xcvrd calls these vendor specific modules by including their name which it obtains by reading the eeprom it is required to include them inside setup.py for the wheel to know it has a package. Signed-off-by: vaibhav-dahiya [email protected] Description add the definition inside setup.py to include sonic_y_cabe.credo as a package Motivation and Context This is required by all calling API's for vendor agnostic Y-Cable API's to be called for credo specific cables. How Has This Been Tested? Built an image and validated the presence of the pacakge. Ran the API's on a Arista7050cx3 switch.
1 parent cd3cca7 commit ce51894

File tree

2 files changed

+1
-0
lines changed

2 files changed

+1
-0
lines changed

setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
'sonic_sfp',
2525
'sonic_thermal',
2626
'sonic_y_cable',
27+
'sonic_y_cable.credo',
2728
],
2829
# NOTE: Install also depends on sonic-config-engine for portconfig.py
2930
# This dependency should be eliminated by moving portconfig.py

sonic_y_cable/credo/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)