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 distutils for Python 3.12 #216

Merged
merged 3 commits into from
Mar 8, 2024
Merged

Conversation

gmloose
Copy link
Collaborator

@gmloose gmloose commented Mar 7, 2024

Python 3.12 no longer ships with distutils. Replaced the use of distutils.version with packaging.version.

gmloose added 3 commits March 2, 2024 12:05
TODO: We may be able to get rid off all version checks, because all(?) check for ancient PyFITS versions, from the time that astropy.io.fits did not exist (i.e. before 2016).
Older versions of Python do not have `packaging.version`, newer version do not have `distutils.version`.
Try to import `packaging.version` first, and use `distutils.version` as fall-back option.
IPython version 8.11 .. 8.15 are broken, in the sense that the PyBDSF shell doesn't work properly.
Excluded these versions explicitly from the requirements.
@gmloose gmloose self-assigned this Mar 7, 2024
@gmloose gmloose requested a review from darafferty March 7, 2024 13:59
Copy link
Collaborator

@darafferty darafferty left a comment

Choose a reason for hiding this comment

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

Looks good!

@gmloose gmloose merged commit 6acc665 into master Mar 8, 2024
2 checks passed
@gmloose gmloose mentioned this pull request Mar 8, 2024
@gmloose gmloose deleted the RAP-381_replace-distutils branch April 15, 2024 15:35
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