##// END OF EJS Templates
setup: monkey patch setuptools to make distutils set owner/group to root
Mads Kiilerich -
r5501:c79e4f89 stable
parent child Browse files
Show More
@@ -121,6 +121,16 b' except ImportError:'
121 from ez_setup import use_setuptools
121 from ez_setup import use_setuptools
122 use_setuptools()
122 use_setuptools()
123 from setuptools import setup, find_packages
123 from setuptools import setup, find_packages
124
125 # monkey patch setuptools to use distutils owner/group functionality
126 from setuptools.command import sdist
127 sdist_org = sdist.sdist
128 class sdist_new(sdist_org):
129 def initialize_options(self):
130 sdist_org.initialize_options(self)
131 self.owner = self.group = 'root'
132 sdist.sdist = sdist_new
133
124 # packages
134 # packages
125 packages = find_packages(exclude=['ez_setup'])
135 packages = find_packages(exclude=['ez_setup'])
126
136
General Comments 0
You need to be logged in to leave comments. Login now