Skip to content

libsass-python relies on removed distutils.msvc9compiler module #468

Closed
@martin-vi

Description

@martin-vi

Windows build fails with:

> pip show setuptools
Name: setuptools
Version: 74.1.1
[…]
>pip install libsass --no-binary :all:
Looking in indexes: https://[…]/simple
Collecting libsass
  Downloading https://[…]/libsass-0.23.0.tar.gz (316 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "C:\Users\user\AppData\Local\Temp\pip-install-pncoj2ti\libsass_a342bf2167704962b7f31ad07daa61f2\setup.py", line 100, in <module>
          from distutils.msvc9compiler import get_build_version
      ModuleNotFoundError: No module named 'distutils.msvc9compiler'
      [end of output]
[…]

See also python-cffi/cffi#117. A possible workaround for now is to use an older setuptools version, e.g. setuptools<74.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions