Skip to content

[nix] drop python 2.7 #1793

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

Merged
merged 1 commit into from
Aug 8, 2021
Merged

Conversation

sjkelly
Copy link
Contributor

@sjkelly sjkelly commented Jun 30, 2021

Pins the local nix shell channel to 20.09, a known working version.
Drop Python 2.7 in the the nix shell

Description

There are issues with Python 2.7 deprecations in the latest 21.05 channel, that cause errors
in nix-shell startup. I have not investigated further, just want to build VTR :)

Related Issue

N/A

Motivation and Context

The described actions in: https://docs.verilogtorouting.org/en/latest/building/building/#using-nix
did not work as expected.

How Has This Been Tested?

Local tests using:

nix-shell dev/nix/shell.nix
make

Types of changes

  • Bug fix (change which fixes an issue)
  • New feature (change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My change requires a change to the documentation
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests passed

N/A for the above.

@vaughnbetz
Copy link
Contributor

Seems like a reasonable change; just kicked off CI. I suggest commenting why we're pinning this though, as someday we'll want to unpin or update it to a later version again.

@sjkelly
Copy link
Contributor Author

sjkelly commented Jul 30, 2021

Actually, this is not very good as-is. I since found better mechanisms, that would likely let this build on latest dependencies.

@vaughnbetz
Copy link
Contributor

Thanks @sjkelly. If you can add those changes instead that would be great.

@sjkelly sjkelly changed the title [nix] pin channel to 20.09 [nix] drop python 2.7 Jul 31, 2021
@sjkelly
Copy link
Contributor Author

sjkelly commented Jul 31, 2021

The simpler fix was simply dropping python 27. PR has been updated.

cc @HackerFoo

Copy link
Contributor

@mithro mithro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@vaughnbetz
Copy link
Contributor

LGTM, thanks. Just waiting for CI to go green.

@sjkelly
Copy link
Contributor Author

sjkelly commented Aug 7, 2021

Think CI is green. Would like to have this for packaging.

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.

4 participants