Skip to content

Commit 3d26f43

Browse files
committed
MNT: setuptools objects do not inherit from object in py27
This means we can not use super on them.
1 parent f9d56d4 commit 3d26f43

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

setup.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,24 +165,27 @@ def _download_jquery_to(dest):
165165

166166

167167
# Relying on versioneer's implementation detail.
168-
class sdist_with_jquery(cmdclass['sdist']):
168+
_orgin_sdist = cmdclass['sdist']
169+
170+
171+
class sdist_with_jquery(_orgin_sdist):
169172
def make_release_tree(self, base_dir, files):
170-
super(sdist_with_jquery, self).make_release_tree(base_dir, files)
173+
_orgin_sdist.make_release_tree(self, base_dir, files)
171174
_download_jquery_to(
172175
os.path.join(base_dir, "lib/matplotlib/backends/web_backend/"))
173176

174177

175178
# Affects install and bdist_wheel.
176179
class install_lib_with_jquery(InstallLibCommand):
177180
def run(self):
178-
super(install_lib_with_jquery, self).run()
181+
InstallLibCommand.run(self)
179182
_download_jquery_to(
180183
os.path.join(self.install_dir, "matplotlib/backends/web_backend/"))
181184

182185

183186
class develop_with_jquery(DevelopCommand):
184187
def run(self):
185-
super(develop_with_jquery, self).run()
188+
DevelopCommand.run(self)
186189
_download_jquery_to("lib/matplotlib/backends/web_backend/")
187190

188191

0 commit comments

Comments
 (0)