Can we specify the order of the build regarding Python versions? #1332
Replies: 2 comments 12 replies
-
As you need only one run per platform, you could use |
Beta Was this translation helpful? Give feedback.
-
@Czaki thanks for your reply. We were thinking about your suggestion. It will indeed the build the specified version. But it will not test the wheel with all Python versions. So that would not work completely. I have briefly read the code base. I think it would not be difficult to sort the build configuration based on Python version one way or the other. We then need to add a new option like |
Beta Was this translation helpful? Give feedback.
-
We are thinking about to refactor our project to use
ctypes
based interface. In that way we only need to build once per platform. We are studying the official example.One thing we noticed is that the build always started at the lowest Python version (3.6 in case of default). If we specify something in the config file like below. The build will start from
cp36-manylinux_x86_64
.This can be a problem, because some of our build dependencies do not support older Python versions. If we could specify the build order to build latest Python version first (3.11), this would not be a problem. Because when it is the turn for older Python version, there is already a compatible wheel file (e.g.
py3-none-manylinux_2_17_x86_64
) and the build step will be skipped. We could then include all the Python versions in the CI to test the built wheel file with all Python versions.How can we specify that the order of build should be to build the latest Python version first?
Beta Was this translation helpful? Give feedback.
All reactions