{"id":26098005,"url":"https://github.com/simpleitk/simpleitkpythonpackage","last_synced_at":"2025-03-09T15:59:34.513Z","repository":{"id":10810911,"uuid":"67014207","full_name":"SimpleITK/SimpleITKPythonPackage","owner":"SimpleITK","description":"A setup script to generate a Python  Wheels","archived":false,"fork":false,"pushed_at":"2025-01-09T18:29:52.000Z","size":50,"stargazers_count":17,"open_issues_count":10,"forks_count":11,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-01-09T19:39:04.853Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CMake","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SimpleITK.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-08-31T07:28:29.000Z","updated_at":"2025-01-09T18:29:49.000Z","dependencies_parsed_at":"2023-01-11T17:57:27.964Z","dependency_job_id":"dd6f1f6b-66c2-466a-b040-c3e7b4f783af","html_url":"https://github.com/SimpleITK/SimpleITKPythonPackage","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimpleITK%2FSimpleITKPythonPackage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimpleITK%2FSimpleITKPythonPackage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimpleITK%2FSimpleITKPythonPackage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimpleITK%2FSimpleITKPythonPackage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SimpleITK","download_url":"https://codeload.github.com/SimpleITK/SimpleITKPythonPackage/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242714052,"owners_count":20173581,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-09T15:59:33.953Z","updated_at":"2025-03-09T15:59:34.504Z","avatar_url":"https://github.com/SimpleITK.png","language":"CMake","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SimpleITKPythonPackage\n\nThis project provides a `setup.py` script that can build, install, and package SimpleITK for Python. [SimpleITK](http://www.simpleitk.org) is a simplified programming layer on top of the [Insight Segmentation and Registration Toolkit](https://itk.org) (ITK).  ITK is an open-source, cross-platform system that provides developers with an extensive suite of software tools for image analysis.\n\nSimpleITK is available for binary downloads from [PyPI](https://pypi.python.org/pypi/SimpleITK) for many common platforms. Also a source distribution is available of this repository which may be used when an appropriate binary [wheel](http://pythonwheels.com) is not available.\n\nTo install SimpleITK:\n\n```bash\npip install SimpleITK\n```\n\n## Installing SimpleITK for Python from the Python Packaging Source\n\n```bash\npip install --no-binary :all: SimpleITK\n```\n\n### Prerequisites\n\nThe 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.\n\nAdditionally building *requires*:\n* Git\n* C++ Compiler - Platform specific requirements are summarized in [scikit-build documentation](http://scikit-build.readthedocs.io).\n* Python\n  * pip \u003e= 9.0.0\n  \nPlease ensure that `pip` is up to date.\n\n```bash\npython -m pip install --upgrade pip\n```\n\n### Compilations and Installation from Github\n\nSimpleITK can be compiled and install directly from the github repository:\n\n```bash\npip install git+https://github.com/SimpleITK/SimpleITKPythonPackage.git -v\n```\n\n### Compilation and Installation from Source Distribution\n\nAlternatively, SimpleITK for Python can be compiled and installed from the SimpleITKPythonPackage python source distribution.\n\n```bash\npip install SimpleITKPythonPackage-1.0.0.tar.gz\n```\n\nThe source distributions are available from [PyPI](https://pypi.python.org/pypi/SimpleITK).\n\n## Automated wheels building with scripts\n\nSteps required to build wheels on Linux, MacOSX and Windows have been automated. The\nfollowing sections outline how to use the associated scripts.\n\n### Linux\n\nOn any linux distribution with `docker` and `bash` installed, running the script\n`dockcross-manylinux-build-wheels.sh` will create 32 and 64-bit wheels for both\npython 2.x and python 3.x in the `dist` directory.\n\nFor example:\n\n```bash\n$ git clone git://github.com/SimpleITK/SimpleITKPythonPackage.git\n[...]\n\n$ ./scripts/dockcross-manylinux-build-wheels.sh\n[...]\n\n$ ls -1 dist/\nSimpleITK-0.11.0-cp27-cp27m-manylinux1_i686.whl\nSimpleITK-0.11.0-cp27-cp27m-manylinux1_x86_64.whl\nSimpleITK-0.11.0-cp27-cp27mu-manylinux1_i686.whl\nSimpleITK-0.11.0-cp27-cp27mu-manylinux1_x86_64.whl\nSimpleITK-0.11.0-cp33-cp33m-manylinux1_i686.whl\nSimpleITK-0.11.0-cp33-cp33m-manylinux1_x86_64.whl\nSimpleITK-0.11.0-cp34-cp34m-manylinux1_i686.whl\nSimpleITK-0.11.0-cp34-cp34m-manylinux1_x86_64.whl\nSimpleITK-0.11.0-cp35-cp35m-manylinux1_i686.whl\nSimpleITK-0.11.0-cp35-cp35m-manylinux1_x86_64.whl\n```\n\n## Prerequisites\n\nBuilding wheels requires:\n* [CMake](https://cmake.org)\n* Git\n* C++ Compiler - Platform specific requirements are summarized in [scikit-build documentation](http://scikit-build.readthedocs.io).\n* Python\n\n## Detailed build instructions\n\n### Building SimpleITK Python wheels\n\nBuild the SimpleITK Python wheel with the following command:\n\n```\npython -m build .\n```\n### Building Source Distribution\n\nThe Python [build](https://pypa-build.readthedocs.io/en/latest/) package should be used to build the source distribution:\n\n```\npython -m build --sdist .\n```\n\n### Efficiently building wheels for different version of python\n\nIf on a given platform you would like to build wheels for different version of python, you can build the SimpleITK core libraries first and reuse them when building each wheel.\n\nHere are the steps:\n\n1. Build `SimpleITKPythonPackage` with `SimpleITKPythonPackage_BUILD_PYTHON` set to `OFF`\n\n2. Build \"flavor\" of package using:\n\n```\npython setup.py bdist_wheel -- \\\n  -DSimpleITK_DIR:PATH=/path/to/SimpleITKPythonPackage-core-build/SimpleITK-superbuild/SimpleITK-build \\\n  -DSWIG_EXECUTABLE:PATH=/path/to/SimpleITKPythonPackage-core-build/SimpleITK-superbuild/Swig/bin/swig\n```\n\n## Miscellaneous\nWritten by Jean-Christophe Fillion-Robin from Kitware Inc.\n\nIt is covered by the Apache License, Version 2.0:\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nFor more information about SimpleITK, visit http://simpleitk.org\n\nFor more information about ITK, visit http://itk.org\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimpleitk%2Fsimpleitkpythonpackage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimpleitk%2Fsimpleitkpythonpackage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimpleitk%2Fsimpleitkpythonpackage/lists"}