setup.py: Don't enable devmode if buildmeta is explicitly set
@@ -522,8 +522,12 @@ class build(distutils_build.build):
class develop(setuptools_develop.develop):
def run(self, *args, **kwargs):
+ from edb import buildmeta
from edb.common import devmode
+ try:
+ buildmeta.get_build_metadata_value("SHARED_DATA_DIR")
+ except buildmeta.MetadataError:
# buildmeta path resolution needs this
devmode.enable_dev_mode()
@@ -781,8 +785,12 @@ class build_studio(setuptools.Command):
pass
def run(self, *args, **kwargs):
+ from edb import buildmeta
from edb.common import devmode
+ try:
+ buildmeta.get_build_metadata_value("SHARED_DATA_DIR")
+ except buildmeta.MetadataError:
# buildmeta path resolution needs this
devmode.enable_dev_mode()
