Skip to content

Update build process. #164

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

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Update build process. #164

wants to merge 10 commits into from

Conversation

Andykl
Copy link
Member

@Andykl Andykl commented Jul 10, 2025

This PR changes build process from setuptools to scikit-build-core, where actual build is done by cmake/ninja.
This makes build instructions more straight forward, builds faster and simplifies needed configuration for MSYS.

I dropped paths for Python <3.12. And also STATIC build, as it could be done differently and simpler, when pygame is part of main repo.

If we want to merge it in, I could add documentation on what system libs should be installed (linux and msys), and after libs are installed, simple uv build --wheel will produce wheel that could be installed and imported on that machine (but no cross compilation or statically compiled libraries).

project(${SKBUILD_PROJECT_NAME} LANGUAGES C)

# Find required packages
find_package(Python 3.12 EXACT REQUIRED
Copy link
Member

Choose a reason for hiding this comment

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

Is there a reason why we're using Python 3.12, only, rather than letting the build system supply the version?

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