setuptools-dso
setuptools extension to build non-python shared libraries
Decision gist · record as of 2026-08-14
Yes, if you need to build and ship non-Python shared libraries as part of a Python package. It eliminates the friction of maintaining separate build systems and integrates cleanly into the standard wheel workflow. The project is stable, actively maintained, has no known vulnerabilities, and carries a permissive license. Install only if you actually have native code to compile; it adds no value for pure-Python packages.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a C/C++ compiler toolchain available on the build system (gcc, clang, MSVC, etc.) to compile the shared libraries.
- Installation is straightforward with low friction—a pure-wheel distribution with only setuptools as a runtime dependency.
- The project is actively maintained with recent commits and has been stable since its 2018 release.
License · maintenance · safety
BSD (permissive) — Licensed under BSD (permissive), so you can use and modify the package freely in both open-source and commercial projects with minimal restrictions.
last release 2026-02-11 (184 days) · last repo commit 2026-03-02 · 13 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 86,622 downloads/mo, #13,846 on PyPI
Alternatives
Verify before relying
pip install setuptools-dso
# In setup.py, import and use the extension:
from setuptools_dso import Extension
from setuptools import setup
setup(
name='mypackage',
ext_modules=[Extension('mylib', sources=['src/mylib.c'])]
)- Whether the package supports building C++ libraries in addition to C
- What compiler flags and customization options are available for advanced build scenarios
- Performance or size overhead compared to pre-built binary wheels
What it is and what it does
setuptools_dso extends setuptools to compile non-Python shared libraries directly during wheel creation, letting you build C/C++ code as part of the standard Python packaging workflow. Instead of maintaining a separate Makefile or build system and pre-compiling binaries, you define your library sources in setup.py and setuptools_dso handles compilation across platforms.
The package is designed for projects that need to ship compiled native code alongside Python modules—common in scientific computing, systems programming, and performance-critical libraries. It integrates into the standard setuptools build pipeline, so the resulting wheels contain both your Python code and the compiled shared objects, making distribution and installation straightforward for end users.
Use it for
- Build and distribute C libraries as part of a Python package without maintaining external build scripts
- Create Python wheels that bundle compiled native code for performance-critical components
- Package EPICS (Experimental Physics and Industrial Control System) drivers and extensions
- Distribute scientific or systems libraries that wrap C/C++ code and need to compile on user systems
- Simplify CI/CD for projects with mixed Python and native code by using setuptools as the single build entry point
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to build and ship non-Python shared libraries as part of a Python package.
It eliminates the friction of maintaining separate build systems and integrates cleanly into the standard wheel workflow. The project is stable, actively maintained, has no known vulnerabilities, and carries a permissive license. Install only if you actually have native code to compile; it adds no value for pure-Python packages.
Install
setuptools-dso on PyPI
Before you install
Installation is straightforward with low friction—a pure-wheel distribution with only setuptools as a runtime dependency. The project is actively maintained with recent commits and has been stable since its 2018 release.
Requires a C/C++ compiler toolchain available on the build system (gcc, clang, MSVC, etc.) to compile the shared libraries.
License in practice
Licensed under BSD (permissive), so you can use and modify the package freely in both open-source and commercial projects with minimal restrictions.
Quickstart
pip install setuptools-dso
# In setup.py, import and use the extension:
from setuptools_dso import Extension
from setuptools import setup
setup(
name='mypackage',
ext_modules=[Extension('mylib', sources=['src/mylib.c'])]
)
Verify before relying
- Whether the package supports building C++ libraries in addition to C
- What compiler flags and customization options are available for advanced build scenarios
- Performance or size overhead compared to pre-built binary wheels
Package facts
| License | BSD permissive |
| Python support | Supports the current Python release >=2.7 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagesetuptools |
| Maintenance | Actively maintained 184 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 86,622 / month, #13,846 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableFramework :: Setuptools PluginIntended Audience :: DevelopersProgramming Language :: Python :: 2.7Programming Language :: Python :: 3Topic :: Software Development :: Libraries :: Python ModulesTopic :: System :: Archiving :: Packaging |
Evidence: setuptools_dso-2.12.3-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “build shared libraries in python wheels”
- setuptools-dsosetuptools_dso is a setuptools plugin that builds non-Python shared…
- scipy-openblas32Provides pre-built OpenBLAS shared libraries and headers for use as a…
- auditwheelAudits and repairs Linux and Android wheel packages to ensure…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also coherent.licensed · delvewheel · extension-helpers · distribute · setuptools-golang · setuptools-odoo · pip-hello-world · setuptools-git · editables