GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — `sysconfig` provide wrong path in built cpython on windows · Issue #160905 · python/cpython

sysconfig provide wrong path in built cpython on windows #160905

New issue
Copy link
New issue
Copy link
Open
Open
sysconfig provide wrong path in built cpython on windows#160905
Copy link
Labels
OS-windowsstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@Locked-chess-official
Locked-chess-official
opened on Oct 29, 2026
Issue body actions

Bug report

I'm sure that in _init_non_posix this will be wrong when in python build:

https://github.com/python/cpython/blob/main/Lib/sysconfig/__init__.py#L412

In python build, this value is just the folder where the sys.executable in. Change it to:

    if not _PYTHON_BUILD:
        vars['LIBDIR'] = _safe_realpath(os.path.join(get_config_var('installed_base'), 'libs'))
    else:
        vars['LIBDIR'] = os.path.dirname(
            _safe_realpath(sys.executable)
        )

CPython versions tested on:

CPython main branch

Operating systems tested on:

Windows

Linked PRs

  • gh-160905: fix wrong LIBDIR config on windows #160906

Activity

  1. Locked-chess-official
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on Oct 29, 2026
  2. aisk
    added
    OS-windows
    on Oct 29, 2026
  3. NekoAsakura
    added
    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
    on Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-windowsstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.