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

[xcvrd] Remove dependence on enum; Add 'sonic-py-common' as dependencies in setup.py #106

Merged
merged 2 commits into from
Oct 28, 2020
Merged

Conversation

jleveque
Copy link
Contributor

@jleveque jleveque commented Oct 27, 2020

Remove dependence on the 'enum' package, as we are currently transitioning from Python 2 to Python 3 and there are installation conflict issues between the enum package and the enum34 package, as enum is part of the standard library in Python 3, however, if enum34 is installed for Python >= 3.4, it takes precedence and will break Python 3 applications which import enum because the interface is different.

Add 'sonic-py-common' as dependencies in setup.py for xcvrd, also add spaces around "equals" signs.

@jleveque jleveque changed the title [xcvrd] Specify 'enum' and 'sonic-py-common' as dependencies in setup.py [xcvrd] Remove dependence on enum; Add 'sonic-py-common' as dependencies in setup.py Oct 28, 2020
@jleveque jleveque merged commit 95b1696 into sonic-net:master Oct 28, 2020
@jleveque jleveque deleted the xcvrd_enum_dep branch October 28, 2020 19:39
jleveque added a commit that referenced this pull request Nov 3, 2020
…d on Python version (#107)

Add dependence on 'enum' package back to xcvrd (basically reverting most of #106). However, in setup.py, we only install the enum34 package if the version of Python we are installing for is < 3.4. Thus, when installing the Python 3 xcvrd package in Python 2.7, the Python 2 version of enum34 will be installed. However, if installing the Python 3 xcvrd package on Python 3.7, enum34 will not be installed, causing xcrvd to import the 'enum' module from the standard library. This should prevent any conflicts which arise when 'enum34' is ever installed on Python versions >= 3.4 by preventing this situation.
vdahiya12 pushed a commit to vdahiya12/sonic-platform-daemons that referenced this pull request Apr 4, 2022
…onic-net#106)

To support the component firmware automatic update, add auto_update_firmware() to platform component api
This is to support fwutil auto_update command to update the platform component firmware automatically.
Fwutil HLD to support auto_update interfaces/commands.
sonic-net/SONiC#648
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants