We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82068e3 commit abe8308Copy full SHA for abe8308
setup.py
@@ -264,7 +264,13 @@ class OTIO_build_py(setuptools.command.build_py.build_py):
264
def run(self):
265
super().run()
266
267
- if not self.dry_run and not self.editable_mode:
+ # editable_mode isn't always present
268
+ try:
269
+ editable_mode = self.editable_mode
270
+ except AttributeError:
271
+ editable_mode = False
272
+
273
+ if not self.dry_run and not editable_mode:
274
# Only run when not in dry-mode (a dry run should not have any side effect)
275
# and in non-editable mode. We don't want to edit files when in editable
276
# mode because that could lead to modifications to the source files.
0 commit comments