Skip to content

uninstall not recognized in setup.py #8439

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
KumoLiu opened this issue May 6, 2025 · 1 comment
Open

uninstall not recognized in setup.py #8439

KumoLiu opened this issue May 6, 2025 · 1 comment
Labels
bug Something isn't working Contribution wanted

Comments

@KumoLiu
Copy link
Contributor

KumoLiu commented May 6, 2025

================================
Printing system config...
================================
`psutil` required for `print_system_info`

================================
Printing GPU config...
================================
/usr/local/lib/python3.12/dist-packages/torch/cuda/__init__.py:789: UserWarning: Can't initialize NVML
  warnings.warn("Can't initialize NVML")
Num GPUs: 0
Has CUDA: False
cuDNN enabled: True
NVIDIA_TF32_OVERRIDE: None
TORCH_ALLOW_TF32_CUBLAS_OVERRIDE: None
cuDNN version: 90501
+ QUICKTEST=True
+ ./runtests.sh --build --min
Run tests under /workspace/Code/MONAI
PYTHONPATH: /workspace/Code/MONAI:
Python: /usr/bin/python
--------------------------------------------------------------------------------
compile and install
Compiling and installing MONAI cpp extensions...
setup.py with torch 2.7.0+cu126
Please set environment variable `BUILD_MONAI=1` to enable Cpp/CUDA extension build.
BUILD_MONAI_CPP=False, BUILD_MONAI_CUDA=False, TORCH_VERSION=20700.
/usr/local/lib/python3.12/dist-packages/setuptools/__init__.py:94: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!

        ********************************************************************************
        Requirements should be satisfied by a PEP 517 installer.
        If you are using pip, you can try `pip install --use-pep517`.
        ********************************************************************************

!!
  dist.fetch_build_eggs(dist.setup_requires)
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: option --uninstall not recognized
@KumoLiu
Copy link
Contributor Author

KumoLiu commented May 6, 2025

pypa/setuptools#4955

@KumoLiu KumoLiu added bug Something isn't working Contribution wanted labels May 6, 2025
KumoLiu added a commit to KumoLiu/MONAI that referenced this issue May 7, 2025
ericspod added a commit that referenced this issue May 8, 2025
workaround for #8439

### Description

This PR temporarily restricts the setuptools version to 79.0.1 to
maintain compatibility with our current setup. In future updates, we
need to review and update our setup configurations to accommodate later
versions of setuptools.

### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not
applicable items -->
- [x] Non-breaking change (fix or new feature that would not break
existing functionality).
- [ ] Breaking change (fix or new feature that would cause existing
functionality to change).
- [ ] New tests added to cover the changes.
- [ ] Integration tests passed locally by running `./runtests.sh -f -u
--net --coverage`.
- [ ] Quick tests passed locally by running `./runtests.sh --quick
--unittests --disttests`.
- [ ] In-line docstrings updated.
- [ ] Documentation updated, tested `make html` command in the `docs/`
folder.

---------

Signed-off-by: Eric Kerfoot <[email protected]>
Signed-off-by: YunLiu <[email protected]>
Co-authored-by: Eric Kerfoot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Contribution wanted
Projects
None yet
Development

No branches or pull requests

1 participant