Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: python/cpython
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3.12
Choose a base ref
...
head repository: python-cmake-buildsystem/cpython
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3.12.0-patches
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 2 commits
  • 3 files changed
  • 1 contributor

Commits on May 26, 2025

  1. _bootstrap_python: Fix execution on windows disabling site import

    This works around the lack of `sys.winver` attribute addressing the following
    error:
    
    ```
     Generating C:/path/to/Python-3.12.10/Python/deepfreeze/deepfreeze.c
    CUSTOMBUILD : Fatal Python error : init_import_site: Failed to import the site module [C:\path	o\pycbs-3.12-build\CMakeBuild\libpython\libpython-shared.vcxproj]
      Python runtime state: initialized
      Traceback (most recent call last):
        File "C:\path	o\pycbs-3.12-build\Lib\site.py", line 636, in <module>
          main()
        File "C:\path	o\pycbs-3.12-build\Lib\site.py", line 622, in main
          known_paths = addusersitepackages(known_paths)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\path	o\pycbs-3.12-build\Lib\site.py", line 361, in addusersitepackages
          user_site = getusersitepackages()
                      ^^^^^^^^^^^^^^^^^^^^^
        File "C:\path	o\pycbs-3.12-build\Lib\site.py", line 348, in getusersitepackages
          USER_SITE = _get_path(userbase)
                      ^^^^^^^^^^^^^^^^^^^
        File "C:\path	o\pycbs-3.12-build\Lib\site.py", line 313, in _get_path
          ver_nodot = sys.winver.replace('.', '')
                      ^^^^^^^^^^
      AttributeError: module 'sys' has no attribute 'winver'
    ```
    jcfr committed May 26, 2025
    Configuration menu
    Copy the full SHA
    ca2fd1a View commit details
    Browse the repository at this point in the history

Commits on May 30, 2025

  1. getpath: Update build directory assumptions based on python-cmake-bui…

    …ldsystem
    
    This ensures the following tests pass:
    - `test_sys` (`SysModuleTest.test_stdlib_dir`)
    - `test_frozen` (`TestFrozen.test_unfrozen_submodule_in_frozen_package`)
    jcfr committed May 30, 2025
    Configuration menu
    Copy the full SHA
    b8d5fa3 View commit details
    Browse the repository at this point in the history
Loading