Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

env: prevent warning from being emitted on venv creation #420

Merged
merged 4 commits into from Jan 5, 2022

Commits on Dec 24, 2021

  1. env: prevent warning from being emitted on venv creation

    After python/cpython@6811fda
    the venv module produces spurious warnings for venv paths which contain
    DOS-encoded parts e.g. "USER~1" in "C:\Users\USER~1".
    `tempfile.gettempdir()` returns legacy paths like these for
    user temp dirs.
    
    MRE:
    
        python -c "import tempfile
        import venv
    
        venv.create(tempfile.mkdtemp())"
    
        Actual environment location may have moved due to redirects, links or junctions.
        Requested location: "C:\Users\RUNNER~1\AppData\Local\Temp\tmpfoobar\Scripts\python.exe"
        Actual location:    "C:\Users\runneradmin\AppData\Local\Temp\tmpfoobar\Scripts\python.exe"
    
    Closes pypa#413.
    layday committed Dec 24, 2021
    Configuration menu
    Copy the full SHA
    fd26419 View commit details
    Browse the repository at this point in the history
  2. tests: fix logging line nos

    layday committed Dec 24, 2021
    Configuration menu
    Copy the full SHA
    8ca05dc View commit details
    Browse the repository at this point in the history

Commits on Jan 5, 2022

  1. Configuration menu
    Copy the full SHA
    234f8de View commit details
    Browse the repository at this point in the history
  2. tests: fix line nos, again

    layday committed Jan 5, 2022
    Configuration menu
    Copy the full SHA
    8c9262a View commit details
    Browse the repository at this point in the history