#7977 tox 3.8.0+ fails on `make wheel_bundle`
Closed: fixed 4 years ago by abbra. Opened 4 years ago by slev.

During the testing I run tox -e py36,pypi,pylint3, which fails with:

+ case $FLAVOR in
+ cp /usr/src/RPM/BUILD/freeipa-4.7.2/pylint_plugins.py .tox/pylint3/lib/python3/site-packages
+ make -C /usr/src/RPM/BUILD/freeipa-4.7.2 wheel_bundle PYTHON=.tox/pylint3/bin/python 'IPA_EXTRA_WHEELS=ipaclient[csrgen,otptoken_yubikey] pylint'
make: Entering directory '/usr/src/RPM/BUILD/freeipa-4.7.2'
mkdir -p ./dist/wheels
rm -f ./dist/wheels/ipaclient-*.whl ./dist/wheels/ipalib-*.whl ./dist/wheels/ipaplatform-*.whl ./dist/wheels/ipapython-*.whl ./dist/wheels/ipatests-*.whl
export IPA_OMIT_INSTALL=1; \
for dir in ipaclient ipalib ipaplatform ipapython ipatests; do \
    make  -C ${dir} bdist_wheel || exit 1; \
done
make[1]: Entering directory '/usr/src/RPM/BUILD/freeipa-4.7.2/ipaclient'
(cd .. && make  ipasetup.py)
make[2]: Entering directory '/usr/src/RPM/BUILD/freeipa-4.7.2'
sed                                             \
        -e 's|@VERSION[@]|4.7.2|g'                      \
        ipasetup.py.in > ipasetup.py
make[2]: Leaving directory '/usr/src/RPM/BUILD/freeipa-4.7.2'
rm -rf ../dist/wheels/ipaclient-*.whl
.tox/pylint3/bin/python "./setup.py" \
    build \
        --build-base "/usr/src/RPM/BUILD/freeipa-4.7.2/ipaclient/build" \
    bdist_wheel \
        --dist-dir=../dist/wheels
/bin/sh: .tox/pylint3/bin/python: No such file or directory
make[1]: *** [Makefile:614: bdist_wheel] Error 127

The wrong piece here is PYTHON=.tox/pylint3/bin/python ( the relative path ).

tox --version
3.12.1 imported from /usr/lib/python3/site-packages/tox/__init__.py

The tox docs say nothing whether the path should be relative or absolute.
Upstream ticket: https://github.com/tox-dev/tox/issues/1339


master:

  • 77bfd5f Resolve tox substitutions to absolute paths

Metadata Update from @abbra:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

4 years ago

Login to comment on this ticket.

Metadata