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

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

Open
martin-vi opened this issue Sep 4, 2024 · 0 comments
Open

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

martin-vi opened this issue Sep 4, 2024 · 0 comments

Comments

@martin-vi
Copy link

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.

@martin-vi martin-vi changed the title libsass-python relies on removed distutils.msvc9compiler libsass-python relies on removed distutils.msvc9compiler module Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant