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

Replace deprecated distutils package #1442

Merged
merged 1 commit into from Nov 16, 2022
Merged

Replace deprecated distutils package #1442

merged 1 commit into from Nov 16, 2022

Conversation

bdevans
Copy link
Contributor

@bdevans bdevans commented Nov 16, 2022

Replace distutils.version.LooseVersion with packaging.version.Version.

Copy link
Member

@mstimberg mstimberg left a comment

Choose a reason for hiding this comment

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

Many thanks, one less DeprecationWarning

@mstimberg
Copy link
Member

I am going ahead with the merge, but I'll also open a new issue about removing these version checks altogether. I'm not sure anymore whether it is really a good thing to have, but if we want to keep it, we should probably fill in the version requirements automatically from a single source. The requirements hardcoded in brian2.__init__.py will easily go out of sync (e.g. it only requires numpy 1.10, whereas our setup.py requires numpy 1.17…)

@mstimberg mstimberg merged commit 4886c46 into master Nov 16, 2022
@mstimberg mstimberg deleted the Remove-distutils branch November 16, 2022 12:43
mstimberg added a commit to brian-team/brian2cuda that referenced this pull request Jul 10, 2023
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.

None yet

2 participants