Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a925f04

Browse files
committed
Don't update matplotlibrc at all if editable_mode
1 parent ff16e05 commit a925f04

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,9 @@ def update_matplotlibrc(path):
216216
class BuildPy(setuptools.command.build_py.build_py):
217217
def run(self):
218218
super().run()
219-
base_dir = "lib" if self.editable_mode else self.build_lib
220-
update_matplotlibrc(
221-
Path(base_dir, "matplotlib/mpl-data/matplotlibrc"))
219+
if not self.editable_mode:
220+
update_matplotlibrc(
221+
Path(self.build_lib, "matplotlib/mpl-data/matplotlibrc"))
222222

223223

224224
class Sdist(setuptools.command.sdist.sdist):

0 commit comments

Comments
 (0)