Skip to content

Substitutions for virtualenv-related sections #1339

Closed
@stanislavlevin

Description

@stanislavlevin

Since tox-3.8.0 the substituted virtualenv-paths (like {envpython} or {envsitepackagesdir}) have become relative.

For example, let use a simple tox configuration like:

[testenv]
commands = echo {envpython} {envsitepackagesdir}

First, check against tox-3.7.0:

python run-test-pre: PYTHONHASHSEED='4105452275'
python runtests: commands[0] | echo /usr/src/RPM/BUILD/test/.tox/python/bin/python /usr/src/RPM/BUILD/test/.tox/python/lib/python3/site-packages
/usr/src/RPM/BUILD/test/.tox/python/bin/python /usr/src/RPM/BUILD/test/.tox/python/lib/python3/site-packages
  /usr/src/RPM/BUILD/test$ /bin/echo /usr/src/RPM/BUILD/test/.tox/python/bin/python /usr/src/RPM/BUILD/test/.tox/python/lib/python3/site-packages

And compare this with tox-3.8.0+:

python run-test-pre: PYTHONHASHSEED='299716092'
python runtests: commands[0] | echo /usr/src/RPM/BUILD/test/.tox/python/bin/python /usr/src/RPM/BUILD/test/.tox/python/lib/python3/site-packages
[19930] /usr/src/RPM/BUILD/test$ /bin/echo .tox/python/bin/python .tox/python/lib/python3/site-packages
.tox/python/bin/python .tox/python/lib/python3/site-packages

So, the virtualenv subst paths became relative instead of absolute ones.

The documentation says nothing about this, so actually I don't know whether it is a regression or not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:question ❔a question about how things work or if something is a bug or a feature

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions