Commit 2be2bed
Modernize build commands for setuptools 80+ compatibility (#8728)
## Description
This PR modernizes MONAI's build and installation commands to be
compatible with setuptools 80+, which removed the deprecated `setup.py
develop --uninstall` command as part of PEP 660 modernization.
## Changes
- **runtests.sh**: Updated `compile_cpp()` and `clean_py()` functions to
use `pip` commands instead of deprecated `setup.py develop`
- **requirements-min.txt**: Removed setuptools upper bound (<=79.0.1)
for Python 3.12+
- **docs/source/installation.md**: Updated editable installation
examples to use modern `pip install -e .`
- **.github/workflows/pythonapp.yml**: Updated CI workflow to use pip
commands
## Rationale
In setuptools 80+, the `setup.py develop --uninstall` command was
removed because the build system now delegates to pip for all
installation/uninstallation operations (PEP 660). The old approach:
- `python setup.py develop` → Now: `pip install -e .`
- `python setup.py develop --uninstall` → Now: `pip uninstall -y monai`
## Testing
- Verified bash syntax in runtests.sh has no errors
- Confirmed no remaining references to deprecated commands
- All changes maintain functional equivalence with modern pip approach
## Types of changes
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [x] Documentation update
Fixes #8439
---------
Signed-off-by: Mohamed Salah <eng.mohamed.tawab@gmail.com>
Co-authored-by: Eric Kerfoot <17726042+ericspod@users.noreply.github.com>1 parent 867a499 commit 2be2bed
File tree
3 files changed
+9
-9
lines changed- .github/workflows
- docs/source
3 files changed
+9
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
95 | | - | |
| 94 | + | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
149 | 149 | | |
150 | | - | |
| 150 | + | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| |||
0 commit comments