Changeset - c79e4f89bfd3
[Not reviewed]
stable
0 1 0
Mads Kiilerich - 10 years ago 2015-09-14 23:06:28
madski@unity3d.com
setup: monkey patch setuptools to make distutils set owner/group to root
1 file changed with 10 insertions and 0 deletions:
0 comments (0 inline, 0 general)
setup.py
Show inline comments
 
@@ -118,12 +118,22 @@ except IOError as err:
 
try:
 
    from setuptools import setup, find_packages
 
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'])
 

	
 
setup(
 
    name='Kallithea',
 
    version=__version__,
0 comments (0 inline, 0 general)