-
Notifications
You must be signed in to change notification settings - Fork 594
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
Using newer Python versions (>= 3.12) for pythonBuild #5206
Comments
Hi all, chiming in and supporting the request as well, especially because the currently supported way of building Python packages, namely via the Instead the command should be exchanged for: Would appreciate your support on this. Thanks! |
Adding to the findings above, it looks like the created Python virtual environment is not sourced properly. jenkins-library/cmd/pythonBuild.go Line 128 in 85dfe3e
Indeed, by running One option for a workaround could be to "inject" the required commands within the
Currently the build is executed via the command jenkins-library/cmd/pythonBuild.go Line 115 in 85dfe3e
Hence, by injecting the Not sure about the security implications of this workaround as well as possible side effects though. |
Hi everyone,
I am working with the
pythonBuild
step from this library and want to migrate to using Python 3.13 for the build. The issue is thatsetuptools
is not available in a "clean" Python 3.12 (and also 3.13) onwards; therefore, the Docker imagepython:3.13
cannot be used. I am not aware of any entry point to configure package installations before the Python build is executed. This would be the relevant code part:jenkins-library/cmd/pythonBuild.go
Line 115 in e927605
From my understanding, it would be necessary to install a build backend (like
setuptools
) beforehand to make this execution successful. Are there other ways of ensuring that a build backend is available, or could we extend the code to handle the build for newer Python versions?I also have another question: Are there plans to support the newer
pyproject.toml
file for setup (which also has the possibility to specify a build backend), or will only thesetup.py
approach be available in the future?Best regards and thank you,
Kevin
The text was updated successfully, but these errors were encountered: