2
0
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:
Aleksandr Mezin
2016-05-31 03:13:24 +06:00
parent 0a8fca094e
commit f6ab2204b7
3 changed files with 4 additions and 3 deletions

View File

@@ -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):