# HG changeset patch # User Mads Kiilerich # Date 2015-09-14 23:06:28 # Node ID c79e4f89bfd30ce87f0e04024e990b88864d5ea4 # Parent e5078f5b46a755cc854cb4644af8fbddf029b2bb setup: monkey patch setuptools to make distutils set owner/group to root diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -121,6 +121,16 @@ except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages + +# monkey patch setuptools to use distutils owner/group functionality +from setuptools.command import sdist +sdist_org = sdist.sdist +class sdist_new(sdist_org): + def initialize_options(self): + sdist_org.initialize_options(self) + self.owner = self.group = 'root' +sdist.sdist = sdist_new + # packages packages = find_packages(exclude=['ez_setup'])