swig 4.3.1.post0


pip install swig

  Latest version

Released: Aug 26, 2025


Meta

Classifiers

License
  • OSI Approved :: GNU General Public License v3 or later (GPLv3+)
  • Other/Proprietary License

Programming Language
  • C
  • C++
  • Python

Operating System
  • OS Independent

Development Status
  • 5 - Production/Stable

Intended Audience
  • Developers

Topic
  • Software Development :: Build Tools

SWIG Python Distributions

PyPI

A project that packages SWIG as a Python package, enabling swig to be installed from PyPI:

pip install swig

or used as part of build-system.requires in a pyproject.toml file:

[build-system]
requires = ["swig"]

PyPI package versions will follow the major.minor.patch version numbers of SWIG releases.

Binary wheels for Windows, macOS, and Linux for most CPU architectures supported on PyPI are provided. ARM wheels for Raspberry Pi available at https://www.piwheels.org/project/swig/.

SWIG PyPI Package Homepage

SWIG Homepage

SWIG Source Code

SWIG License: GPL-3.0-or-later with portions under LICENSE-UNIVERSITIES (see LICENSE-SWIG for details)

Installing SWIG

SWIG can be installed by pip with:

pip install swig

or:

python -m pip install swig

Building from the source dist package requires internet access in order to download a copy of the SWIG source code.

Using with pipx

Using pipx run swig <args> will run SWIG without any install step, as long as the machine has pipx installed (which includes GitHub Actions runners).

Using with pyproject.toml

SWIG can be added to the build-system.requires key in a pyproject.toml file for building Python extensions that use SWIG to generate bindings.

[build-system]
requires = ["swig"]

License

The code for this project is covered by the Apache License, Version 2.0. Source distributions do not include a copy of the SWIG source code or binaries. Binary wheels are covered by the SWIG license (GPLv3), due to their inclusion of a compiled SWIG binary and library files.

SWIG is distributed under the GNU General Public License v3 or later with portions under the file LICENSE-UNIVERSITIES. For more information about SWIG, visit http://www.swig.org

Wheel compatibility matrix

Platform Python 3
macosx_10_9_universal2
manylinux2010_i686
manylinux2010_x86_64
manylinux2014_aarch64
manylinux2014_ppc64le
manylinux2014_s390x
manylinux_2_12_i686
manylinux_2_12_x86_64
manylinux_2_17_aarch64
manylinux_2_17_ppc64le
manylinux_2_17_s390x
manylinux_2_24_armv7l
manylinux_2_31_armv7l
manylinux_2_31_riscv64
musllinux_1_2_aarch64
musllinux_1_2_armv7l
musllinux_1_2_i686
musllinux_1_2_ppc64le
musllinux_1_2_riscv64
musllinux_1_2_s390x
musllinux_1_2_x86_64
win_amd64
win_arm64

Files in release

No dependencies