% 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.
Fixes #259
On Python >= 3.12
%
pipx run --no-cache --spec git+https://github.com/nodejs/gyp-next.git gyp --help
was erroring with%
pipx run --no-cache --spec git+https://github.com/nodejs/gyp-next.git gyp --version
is still erroring withgyp --help
was fixed in gyp-next v0.18.0gyp --version
was notSince 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.