nodejs / gyp-next

A fork of the GYP build system for use in the Node.js projects
BSD 3-Clause "New" or "Revised" License
125 stars 69 forks source link

chore: dependencies = setuptools for `gyp --version` on Python >= 3.12 #256

Closed cclauss closed 1 month ago

cclauss commented 2 months ago

Fixes #259

On Python >= 3.12

% pipx run --no-cache --spec git+https://github.com/nodejs/gyp-next.git gyp --help was erroring with

ModuleNotFoundError: No module named 'packaging'

% pipx run --no-cache --spec git+https://github.com/nodejs/gyp-next.git gyp --version is still erroring with

ModuleNotFoundError: No module named 'pkg_resources'

gyp --help was fixed in gyp-next v0.18.0 gyp --version was not

Since both modules are included setuptools let's use that recommended fix.


Proof: % pipx install gyp-next % gyp --version # Fails! % pipx inject gyp-next setuptools # This is the same action as this pull request. % gyp --version # Works as expected. % gyp --help # Works as expected.