Skip to main content

SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

swig-4.2.0.post0.tar.gz (27.3 kB view hashes)

Uploaded Source

Built Distributions

swig-4.2.0.post0-py2.py3-none-win_amd64.whl (2.5 MB view hashes)

Uploaded Python 2 Python 3 Windows x86-64

swig-4.2.0.post0-py2.py3-none-win32.whl (2.5 MB view hashes)

Uploaded Python 2 Python 3 Windows x86

swig-4.2.0.post0-py2.py3-none-musllinux_1_1_x86_64.whl (2.5 MB view hashes)

Uploaded Python 2 Python 3 musllinux: musl 1.1+ x86-64

swig-4.2.0.post0-py2.py3-none-musllinux_1_1_s390x.whl (2.5 MB view hashes)

Uploaded Python 2 Python 3 musllinux: musl 1.1+ s390x

swig-4.2.0.post0-py2.py3-none-musllinux_1_1_ppc64le.whl (2.6 MB view hashes)

Uploaded Python 2 Python 3 musllinux: musl 1.1+ ppc64le

swig-4.2.0.post0-py2.py3-none-musllinux_1_1_i686.whl (2.7 MB view hashes)

Uploaded Python 2 Python 3 musllinux: musl 1.1+ i686

swig-4.2.0.post0-py2.py3-none-musllinux_1_1_aarch64.whl (2.5 MB view hashes)

Uploaded Python 2 Python 3 musllinux: musl 1.1+ ARM64

swig-4.2.0.post0-py2.py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl (1.9 MB view hashes)

Uploaded Python 2 Python 3 manylinux: glibc 2.17+ s390x

swig-4.2.0.post0-py2.py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (2.0 MB view hashes)

Uploaded Python 2 Python 3 manylinux: glibc 2.17+ ppc64le

swig-4.2.0.post0-py2.py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.9 MB view hashes)

Uploaded Python 2 Python 3 manylinux: glibc 2.17+ ARM64

swig-4.2.0.post0-py2.py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.9 MB view hashes)

Uploaded Python 2 Python 3 manylinux: glibc 2.5+ x86-64

swig-4.2.0.post0-py2.py3-none-manylinux_2_5_i686.manylinux1_i686.whl (1.8 MB view hashes)

Uploaded Python 2 Python 3 manylinux: glibc 2.5+ i686

swig-4.2.0.post0-py2.py3-none-macosx_11_0_arm64.whl (1.7 MB view hashes)

Uploaded Python 2 Python 3 macOS 11.0+ ARM64

swig-4.2.0.post0-py2.py3-none-macosx_10_9_x86_64.whl (1.8 MB view hashes)

Uploaded Python 2 Python 3 macOS 10.9+ x86-64

swig-4.2.0.post0-py2.py3-none-macosx_10_9_universal2.whl (2.6 MB view hashes)

Uploaded Python 2 Python 3 macOS 10.9+ universal2 (ARM64, x86-64)

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page