Skip to content

[BUG] MSVC builds fail because shared_lib_format is not defined #4885

@klayoutmatthias

Description

@klayoutmatthias

setuptools version

76.0.0

Python version

All

OS

Windows

Additional environment information

No response

Description

_distutils/compilers/C/msvc.py does not define the shared_lib_format attribute. Here is line 260:

static_lib_format = static_lib_format = '%s%s'

It used to be

static_lib_format = shared_lib_format = '%s%s'

but was broken with this commit: 19e9575#diff-f9638b451b134f36d333164e25a77ede338e15822339b99851e4f345a76052c4R259

Expected behavior

shared_lib_format should be available again

How to Reproduce

Perform a build that produces shared objects with MSVC

Output


Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions