Dev-iL opened a new pull request, #1268:
URL: https://github.com/apache/cassandra-python-driver/pull/1268

   ## Summary
   
   Remove the legacy `ez_setup.py` bootstrap script to fix build failures with 
setuptools >= 82.
   
   - **Delete `ez_setup.py`**: This 249-line script was a setuptools 
bootstrapper from circa 2013 that attempted to download setuptools 0.9.6 if not 
present. It imported `pkg_resources`, which was [removed in setuptools 
v82](https://setuptools.pypa.io/en/latest/history.html#v82-0-0) (2026-02-08), 
causing `ModuleNotFoundError` during builds.
   - **Remove `ez_setup.py` from `MANIFEST.in`**: Stop including the deleted 
file in source distributions.
   
   The script was already dead code — `setup.py` does not import or call it. 
The project's `pyproject.toml` (added in CASSPYTHON-3) declares `setuptools` as 
a build dependency, so any PEP 517-compliant build frontend (pip, uv, build) 
installs setuptools automatically, making `ez_setup.py` unnecessary.
   
   ### Build failure before this change
   
   ```
   $ uv pip install cassandra-driver
     × Failed to build `cassandra-driver==3.29.3`
   
         Traceback (most recent call last):
           File ".../ez_setup.py", line 115, in use_setuptools
             import pkg_resources
         ModuleNotFoundError: No module named 'pkg_resources'
   ```
   
   ## Test plan
   
   - [x] `uv pip install -e .` succeeds and compiles all C/Cython extensions
   - [x] `python -c 'import cassandra; print(cassandra.__version__)'` prints 
`3.30.0`
   
   Generated-by: Claude Opus 4.6


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to