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

[python] Fix FuseSoC version #22185

Merged
merged 1 commit into from
Mar 22, 2024

Conversation

andreaskurth
Copy link
Contributor

Prior to this commit, the FuseSoC version downloaded when running

pip install -r python-requirements.txt

would identify itself as version 0.4.dev0 to Pip as well as in fusesoc --version. This is problematic in at least two ways:

  1. Because Pip gets told that it downloaded version 0.4, it can prefer to use a locally cached archive (and I've seen it doing that!) that is really version 0.4, causing the update to become a NOP even though the user thinks they just updated FuseSoC.

  2. Users have no way of distinguishing between versions 0.4 and 0.5 from the command line, which makes debugging issues that got fixed in version 0.5 difficult.

To work around this problem, the PR lowRISC/fusesoc#6 changed fallback_version, from which our FuseSoC gets its version, to 0.5.dev0, and this version was subsequently tagged as such. This commit now updates our Python requirements to load the fixed version.

Run pip install -r python-requirements.txt after this commit has landed to update FuseSoC to version 0.5.dev0 for good.

Prior to this commit, the FuseSoC version downloaded when running

    pip install -r python-requirements.txt

would identify itself as **version `0.4.dev0`** to Pip as well as in
`fusesoc --version`.  This is problematic in at least two ways:

1. Because Pip gets told that it downloaded version 0.4, it can prefer
   to use a locally cached archive (and I've seen it doing that!) that
   is *really* version 0.4, causing the update to become a NOP even
   though the user thinks they just updated FuseSoC.

2. Users have no way of distinguishing between versions 0.4 and 0.5 from
   the command line, which makes debugging issues that got fixed in
   version 0.5 difficult.

To work around this problem, the PR lowRISC/fusesoc#6 changed
`fallback_version`, from which our FuseSoC gets its version, to
`0.5.dev0`, and this version was subsequently tagged as such.  This
commit now updates our Python requirements to load the fixed version.

Run `pip install -r python-requirements.txt` after this commit has
landed to update FuseSoC to version `0.5.dev0` for good.

Signed-off-by: Andreas Kurth <adk@lowrisc.org>
@andreaskurth
Copy link
Contributor Author

Failing CI checks are unrelated. Merging

@andreaskurth andreaskurth merged commit d3fcdcc into lowRISC:master Mar 22, 2024
29 of 32 checks passed
@andreaskurth andreaskurth deleted the fusesoc-fix-version branch March 22, 2024 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants