Skip to content

Commit 2b446af

Browse files
authored
Merge pull request matplotlib#24191 from tacaswell/fix_noneditable_install
BLD: be more cautious about checking editable mode
2 parents d8c1cb0 + 7793b7f commit 2b446af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def update_matplotlibrc(path):
217217
class BuildPy(setuptools.command.build_py.build_py):
218218
def run(self):
219219
super().run()
220-
if not self.editable_mode:
220+
if not getattr(self, 'editable_mode', False):
221221
update_matplotlibrc(
222222
Path(self.build_lib, "matplotlib/mpl-data/matplotlibrc"))
223223

0 commit comments

Comments
 (0)