2
0
mirror of git://github.com/lxc/lxc synced 2025-08-31 04:09:36 +00:00

Merge pull request #1035 from GreatFruitOmsk/python-setuptools

python-lxc: use setuptools instead of distutils
This commit is contained in:
Stéphane Graber
2016-05-31 00:19:29 -04:00
3 changed files with 4 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ compiler:
before_install:
- sudo add-apt-repository ppa:ubuntu-lxc/daily -y
- sudo apt-get update -qq
- sudo apt-get install -qq libapparmor-dev libcap-dev libseccomp-dev python3-dev docbook2x libgnutls-dev liblua5.2-dev libselinux1-dev libcgmanager-dev
- sudo apt-get install -qq libapparmor-dev libcap-dev libseccomp-dev python3-dev python3-setuptools docbook2x libgnutls-dev liblua5.2-dev libselinux1-dev libcgmanager-dev
script:
- ./autogen.sh
- mkdir build

View File

@@ -97,6 +97,7 @@ BuildRequires: libseccomp-devel
%if %{with_python}
Requires: python3
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%endif
%description

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