# SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.

      Please see https://setuptools.pypa.io/en/latest/userguide/quickstart.html
      setup.py install
      ~~~~~~~~~~~~^

SetuptoolsDeprecationWarning: The namespace_packages parameter is deprecated.

- **ID:** `python/setuptools-find-namespace-packages-deprecated`
- **Domain:** python
- **Category:** config_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The project still uses the deprecated setup.py install path and namespace_packages keyword, which setuptools has deprecated in favor of PEP 420 native namespace packages and pyproject.toml-based builds.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.9 | active | — | — |
| 3.10 | active | — | — |
| 3.11 | active | — | — |
| 3.12 | active | — | — |

## Workarounds

1. **** (85% success)
   ```
   # remove namespace_packages from setup.cfg/setup.py
# rely on implicit namespace packages:
# mypkg/sub/__init__.py (implicit, no __init__ needed at mypkg level)
pip install -e .
   ```
2. **** (90% success)
   ```
   python -m pip install build
python -m build
pip install dist/*.whl
   ```

## Dead Ends

- **** — Suppresses warnings but the deprecated code path still runs and will be removed in future setuptools releases. (70% fail)
- **** — Avoids the warning but blocks security fixes and breaks on Python 3.12+ where distutils is gone. (80% fail)
