handson-ml/README.md

69 lines
2.4 KiB
Markdown
Raw Permalink Normal View History

2024-10-03 10:34:08 +02:00
SWIG Python Distributions
=========================
2016-02-16 21:40:20 +01:00
2024-10-03 10:34:08 +02:00
[![PyPI](https://img.shields.io/pypi/v/swig.svg)](https://pypi.org/project/swig)
2016-09-27 14:08:23 +02:00
2024-10-03 10:34:08 +02:00
A project that packages SWIG as a Python package, enabling `swig` to be installed from PyPI:
2024-10-03 10:34:08 +02:00
```sh
pip install swig
```
2016-02-16 21:40:20 +01:00
2024-10-03 10:34:08 +02:00
or used as part of `build-system.requires` in a pyproject.toml file:
2016-02-16 21:40:20 +01:00
2024-10-03 10:34:08 +02:00
```toml
[build-system]
requires = ["swig"]
```
2024-10-03 10:34:08 +02:00
PyPI package versions will follow the `major.minor.patch` version numbers of SWIG releases.
2016-02-18 00:30:04 +01:00
2024-10-03 10:34:08 +02:00
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/.
2024-10-03 10:34:08 +02:00
[SWIG PyPI Package Homepage](https://github.com/nightlark/swig-pypi)
2019-11-06 14:11:07 +01:00
2024-10-03 10:34:08 +02:00
[SWIG Homepage](http://www.swig.org/)
2022-09-26 01:54:26 +02:00
2024-10-03 10:34:08 +02:00
[SWIG Source Code](https://github.com/swig/swig/)
2016-02-18 00:30:04 +01:00
2024-10-03 10:34:08 +02:00
[SWIG License](https://github.com/swig/swig/blob/master/LICENSE): GPL-3.0-or-later with portions under [LICENSE-UNIVERSITIES](https://github.com/nightlark/swig-pypi/blob/main/LICENSE-UNIVERSITIES) (see [LICENSE-SWIG](https://github.com/nightlark/swig-pypi/blob/main/LICENSE-SWIG) for details)
2024-10-03 10:34:08 +02:00
Installing SWIG
===============
2016-02-18 00:30:04 +01:00
2024-10-03 10:34:08 +02:00
SWIG can be installed by pip with:
2024-10-03 10:34:08 +02:00
```sh
pip install swig
```
2016-02-18 00:30:04 +01:00
2024-10-03 10:34:08 +02:00
or:
2024-10-03 10:34:08 +02:00
```sh
python -m pip install swig
```
2024-10-03 10:34:08 +02:00
Building from the source dist package requires internet access in order to download a copy of the SWIG source code.
2016-02-18 00:30:04 +01:00
2024-10-03 10:34:08 +02:00
Using with pipx
===============
2016-02-18 00:30:04 +01:00
2024-10-03 10:34:08 +02:00
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).
2019-12-16 16:11:50 +01:00
2024-10-03 10:34:08 +02:00
Using with pyproject.toml
=========================
2019-11-06 14:11:07 +01:00
2024-10-03 10:34:08 +02:00
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.
2019-12-16 16:11:50 +01:00
2024-10-03 10:34:08 +02:00
```toml
[build-system]
requires = ["swig"]
```
2019-12-16 16:11:50 +01:00
2024-10-03 10:34:08 +02:00
License
=======
2019-12-16 16:11:50 +01:00
2024-10-03 10:34:08 +02:00
The code for this project is covered by the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-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.
2019-12-16 16:11:50 +01:00
2024-10-03 10:34:08 +02:00
SWIG is distributed under the [GNU General Public License v3 or later](https://github.com/swig/swig/blob/master/LICENSE) with portions under the file [LICENSE-UNIVERSITIES](https://github.com/swig/swig/blob/master/LICENSE-UNIVERSITIES). For more information about SWIG, visit [http://www.swig.org](http://www.swig.org/)