You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-11Lines changed: 14 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,27 +13,23 @@ pip install SimpleITK
13
13
## Installing SimpleITK for Python from the Python Packaging Source
14
14
15
15
```bash
16
-
pip install SimpleITK
16
+
pip install --no-binary :all: SimpleITK
17
17
```
18
18
19
19
### Prerequisites
20
20
21
-
Building *requires*:
22
-
*[CMake](https://cmake.org)
21
+
The build requirements are specified in the pyproject.toml file via [PEP 518](https://peps.python.org/pep-0518/). The requirements should be automatically downloaded when using a [PEP 517](https://peps.python.org/pep-0517/) compliant build front-end.
22
+
23
+
Additionally building *requires*:
23
24
* Git
24
25
* C++ Compiler - Platform specific requirements are summarized in [scikit-build documentation](http://scikit-build.readthedocs.io).
25
26
* Python
26
27
* pip >= 9.0.0
27
-
* scikit-build >= 0.5.0
28
28
29
-
Please ensure that `pip` and `scikit-build` are up to date and are a recent version.
30
-
31
-
*Optional*:
32
-
33
-
If CMake is not already available on you system it can be installed with pip. Additionally, the [Ninja](https://ninja-build.org) build tool is recommened for it's parallel build efficiency. These can be easily installed with:
29
+
Please ensure that `pip` is up to date.
34
30
35
31
```bash
36
-
pip install cmake ninja
32
+
python -m pip install --upgrade pip
37
33
```
38
34
39
35
### Compilations and Installation from Github
@@ -52,7 +48,7 @@ Alternatively, SimpleITK for Python can be compiled and installed from the Simpl
52
48
pip install SimpleITKPythonPackage-1.0.0.tar.gz
53
49
```
54
50
55
-
The source distributions are available from [PyPI](https://pypi.python.org/pypi/SimpleITK) and [Source Forge](https://sourceforge.net/projects/simpleitk/files/SimpleITK/1.0.0/Python). They are labeled as `SimpleITKPythonPackages` in the Python sub-directory as opposed to just `SimpleITK` for the source archive of the general SimpleITK repository.
51
+
The source distributions are available from [PyPI](https://pypi.python.org/pypi/SimpleITK).
56
52
57
53
## Automated wheels building with scripts
58
54
@@ -106,6 +102,13 @@ mkvirtualenv build-sitk
106
102
pip install -r requirements-dev.txt
107
103
python setup.py bdist_wheel
108
104
```
105
+
### Building Source Distribution
106
+
107
+
The Python [build](https://pypa-build.readthedocs.io/en/latest/) package should be used to build the source distribution:
108
+
109
+
```
110
+
python -m build --sdist
111
+
```
109
112
110
113
### Efficiently building wheels for different version of python
0 commit comments