Skip to content

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Sep 2, 2025

This PR adds recipes for two related packages to support prime number generation in WebAssembly environments:

  1. primesieve - A fast C++ library for generating prime numbers by Kim Walisch
  2. python-primesieve - Python bindings for the primesieve library

Package Details

primesieve (v12.5)

  • C++ library built with CMake
  • Configured for static linking (-DBUILD_SHARED_LIBS=OFF)
  • Includes proper run_exports for dependency management
  • Tests verify library and header installation

python-primesieve (v2.3.2)

  • Python bindings using pybind11
  • Depends on the primesieve C++ library
  • Includes import test with basic functionality verification
  • Built using standard pip installation

The recipes follow established patterns from similar packages in the repository (gmp/gmpy2, eigen, boost-cpp) and are structured for the emscripten-wasm32 target platform.

Fixes #2880


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

@DerThorsten
Copy link
Contributor

@copilot try gain.

please add the primesieve library as recipe and also python-primesieve which uses that library

Copy link
Contributor Author

Copilot AI commented Sep 3, 2025

@copilot try gain.

please add the primesieve library as recipe and also python-primesieve which uses that library

I've added both recipes as requested:

  1. primesieve - C++ library recipe (v12.5) with CMake build
  2. python-primesieve - Python bindings recipe (v2.3.2) with pip build and import test

Both recipes follow the established patterns from similar packages in the repository. The primesieve library builds as a static library, and python-primesieve depends on it for the Python bindings.

Commit: fbd9093

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/kimwalisch/primesieve
    • Triggering command: curl -s REDACTED (http block)

If you need me to access, download, or install something from one of these locations, you can either:

@Copilot Copilot AI changed the title [WIP] primesieve Add primesieve and python-primesieve recipes for emscripten-wasm32 Sep 3, 2025
Copilot finished work on behalf of DerThorsten September 3, 2025 08:06
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.

primesieve

2 participants