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

autoconf: support python 3.12 #6303

Merged
merged 1 commit into from
Sep 26, 2024
Merged

autoconf: support python 3.12 #6303

merged 1 commit into from
Sep 26, 2024

Conversation

trws
Copy link
Member

@trws trws commented Sep 25, 2024

problem: flux-core currently can't configure with python3.12 due to setuptools no longer being part of the default distribution

solution: import setuptools where necessary to keep things working in the ax_python_devel file

This worked to build a copy of flux, but I didn't get the dep install scripts updated yet because I couldn't get an image downloaded on this wifi. Now off to dinner and the airport.

@trws trws requested a review from grondo September 25, 2024 07:23
@wihobbs
Copy link
Member

wihobbs commented Sep 25, 2024

Oooh, some neat stuff in here! https://docs.python.org/3/whatsnew/3.12.html

Copy link
Contributor

@grondo grondo left a comment

Choose a reason for hiding this comment

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

Thanks! LGTM!

@grondo
Copy link
Contributor

grondo commented Sep 25, 2024

I've set MWP here. Thanks @trws!

@grondo
Copy link
Contributor

grondo commented Sep 25, 2024

Actually this is failing in the alpine builder with:

checking for a version of Python >= '2.1.0'... Traceback (most recent call last):
    File "<string>", line 1, in <module>
  ModuleNotFoundError: No module named 'setuptools'
  no
  configure: WARNING:
  This version of the AC_PYTHON_DEVEL macro
  doesn't work properly with versions of Python before
  2.1.0. You may need to re-run configure, setting the
  variables PYTHON_CPPFLAGS, PYTHON_LIBS, PYTHON_SITE_PKG,
  PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
  Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
  to something else than an empty string.
  
  configure: error: in `/usr/src':
  configure: error: Giving up

I'll try to take a look at this tonight.

@trws
Copy link
Member Author

trws commented Sep 25, 2024 via email

problem: flux-core currently can't configure with python3.12 due to
setuptools no longer being part of the default distribution

solution: import setuptools where necessary to keep things working in
the ax_python_devel file

Also add setuptools as an explicit dep in our scripts and the one
dockerfile that lacked it.
@trws
Copy link
Member Author

trws commented Sep 26, 2024

I managed to test it, adding py3-setuptools looks like it's all we actually need. The other dockerfiles already have it. I pushed the dockerfile, but the internet on the plane is not conducive to actually building and pushing the darned thing to dockerhub.

@grondo
Copy link
Contributor

grondo commented Sep 26, 2024

but the internet on the plane is not conducive to actually building and pushing the darned thing to dockerhub.

I can do this but I can't seem to build docker images anymore (I may need to set up a VM with a newer docker):

$ docker build --no-cache -t fluxrm/testenv:alpine -f src/test/docker/alpine/Dockerfile 
ERROR: "docker buildx build" requires exactly 1 argument.
See 'docker buildx build --help'.

Usage:  docker buildx build [OPTIONS] PATH | URL | -

Start a build

Note: We need to update the src/test/docker/README.md. Instructions don't work anymore.

@trws
Copy link
Member Author

trws commented Sep 26, 2024 via email

@grondo
Copy link
Contributor

grondo commented Sep 26, 2024

D'oh! That seems to be working. 🤦

@mergify mergify bot merged commit 961ef58 into flux-framework:master Sep 26, 2024
33 checks passed
@grondo
Copy link
Contributor

grondo commented Sep 26, 2024

Ok, pushed the alpine image and reran CI and the PR is now merged. Thanks @trws!

Copy link

codecov bot commented Sep 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.32%. Comparing base (cab4755) to head (e287c87).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6303      +/-   ##
==========================================
- Coverage   83.33%   83.32%   -0.01%     
==========================================
  Files         523      523              
  Lines       86133    86133              
==========================================
- Hits        71775    71770       -5     
- Misses      14358    14363       +5     

see 9 files with indirect coverage changes

@trws
Copy link
Member Author

trws commented Sep 26, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants