Skip to content

Commit 7793b7f

Browse files
committed
BLD: be more cautious about checking editable mode
It can be missing rather than false when invoke as $ pip install --no-build-isolation .
1 parent deb7b11 commit 7793b7f

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)