GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - GraphBLAS/python-suitesparse-graphblas: Python CFFI Binding around SuiteSparse:GraphBLAS

BranchesTags
Open more actions menu

Latest commit

 

History

230 Commits
230 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
continuous_integration
continuous_integration
 
 
suitesparse_graphblas
suitesparse_graphblas
 
 
.dockerignore
.dockerignore
 
 
.flake8
.flake8
 
 
.gitignore
.gitignore
 
 
.pre-commit-config.yaml
.pre-commit-config.yaml
 
 
AGENTS.md
AGENTS.md
 
 
Dockerfile
Dockerfile
 
 
GB_VERSION.txt
GB_VERSION.txt
 
 
LICENSE
LICENSE
 
 
MANIFEST.in
MANIFEST.in
 
 
README.md
README.md
 
 
build_graphblas_cffi.py
build_graphblas_cffi.py
 
 
docker_build.sh
docker_build.sh
 
 
latest_suitesparse_graphblas_version.py
latest_suitesparse_graphblas_version.py
 
 
pyproject.toml
pyproject.toml
 
 
setup.py
setup.py
 
 
suitesparse.sh
suitesparse.sh
 
 

Repository files navigation

python-suitesparse-graphblas

Version License Build Status Code style

Python CFFI Binding around SuiteSparse:GraphBLAS

This is a base package that exposes only the low level CFFI API bindings and symbols. This package is shared by the syntax bindings pygraphblas and python-graphblas.

Installation from pre-built wheels

Pre-built wheels for common platforms are available from PyPI and conda. These bundle a compiled copy of SuiteSparse:GraphBLAS.

pip install suitesparse-graphblas

or

conda install -c conda-forge python-suitesparse-graphblas

In the browser (Pyodide)

PyPI also has WebAssembly wheels for Pyodide 314 (Python 3.14) and 0.29.4 or later (Python 3.13), the pyemscripten platform of PEP 783. So, in Pyodide or JupyterLite (jupyterlite-pyodide-kernel 0.8 uses Pyodide 314):

import micropip
await micropip.install("suitesparse-graphblas")

Older versions of Pyodide don't recognize these wheels: micropip says it can't find a pure Python 3 wheel. GraphBLAS runs single-threaded in Pyodide, which has no threads (so no OpenMP).

Installation from source

If you wish to link against your own copy of SuiteSparse:GraphBLAS you may build from source.

Specify the location of your SuiteSparse:GraphBLAS installation in the GraphBLAS_ROOT environment variable then use the standard pip build from source mechanism. This location must contain include/GraphBLAS.h and lib/.

export GraphBLAS_ROOT="/path/to/graphblas"
pip install suitesparse-graphblas-*.tar.gz

You may also have to appropriately set LD_LIBRARY_PATH to find libgraphblas at runtime.

For example, to use Homebrew's SuiteSparse:GraphBLAS on macOS, with the sdist from PyPI, and with all dependencies using wheels:

GraphBLAS_ROOT="$(brew --prefix suitesparse)" pip install --no-binary suitesparse-graphblas suitesparse-graphblas

About

Python CFFI Binding around SuiteSparse:GraphBLAS

Resources

Readme
Apache-2.0 license
Activity
Custom properties

Stars

24 stars

Watchers

5 watching

Forks

7 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.