mirror of
git://github.com/lxc/lxc
synced 2025-09-10 00:19:35 +00:00
python-lxc: use setuptools instead of distutils
setuptools is recommended by Python Packaging Guide https://python-packaging-user-guide.readthedocs.io/en/latest/current/ It contains some useful extensions like 'develop' command. Also it is required for building wheels AFAIK. The only downside is an extra build-time dependency. setuptools are packaged in both Debian and Ubuntu (python3-setuptools), as well as other major distros, so it shouldn't be an issue, I think. Signed-off-by: Aleksandr Mezin <mezin.alexander@gmail.com>
This commit is contained in:
@@ -25,8 +25,8 @@
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
from distutils.core import setup, Extension
|
||||
from distutils.command.build_ext import build_ext as BuildExtCommand
|
||||
from setuptools import setup, Extension
|
||||
from setuptools.command.build_ext import build_ext as BuildExtCommand
|
||||
|
||||
|
||||
class LxcBuildExtCommand(BuildExtCommand):
|
||||
|
Reference in New Issue
Block a user