0001-misc-replace-deprecated-distutils-by-setuptols-or-st.patch
setup.py | ||
---|---|---|
6 | 6 | |
7 | 7 |
import glob |
8 | 8 |
import os |
9 |
import shutil |
|
9 | 10 |
import subprocess |
10 | 11 |
import sys |
11 |
from distutils.cmd import Command |
|
12 |
from distutils.command.build import build as _build |
|
13 |
from distutils.errors import CompileError |
|
14 |
from distutils.spawn import find_executable |
|
15 | 12 | |
16 |
from setuptools import find_packages, setup |
|
13 |
from setuptools import Command, find_packages, setup |
|
14 |
from setuptools.command.build import build as _build |
|
17 | 15 |
from setuptools.command.install_lib import install_lib as _install_lib |
18 | 16 |
from setuptools.command.sdist import sdist as _sdist |
17 |
from setuptools.errors import CompileError |
|
19 | 18 | |
20 | 19 | |
21 | 20 |
class compile_translations(Command): |
... | ... | |
62 | 61 |
def run(self): |
63 | 62 |
sass_bin = None |
64 | 63 |
for program in ('sassc', 'sass'): |
65 |
sass_bin = find_executable(program)
|
|
64 |
sass_bin = shutil.which(program)
|
|
66 | 65 |
if sass_bin: |
67 | 66 |
break |
68 | 67 |
if not sass_bin: |
69 |
- |