@@ -49,7 +49,7 @@ def _install_extensions(ext_paths):
4949
5050 # install specified extensions
5151 for path in ext_paths or []:
52- result = pip_cmd ('install -e {}' .format (path ), "Adding extension '{}'..." .format (path ))
52+ result = pip_cmd ('install -e {} --config-settings editable_mode=compat ' .format (path ), "Adding extension '{}'..." .format (path ))
5353 if result .error :
5454 raise result .error # pylint: disable=raising-bad-type
5555
@@ -90,46 +90,46 @@ def _install_cli(cli_path, deps=None):
9090 # Resolve dependencies from setup.py files.
9191 # command modules have dependency on azure-cli-core so install this first
9292 pip_cmd (
93- "install -e {}" .format (os .path .join (cli_src , 'azure-cli-telemetry' )),
93+ "install -e {} --config-settings editable_mode=compat " .format (os .path .join (cli_src , 'azure-cli-telemetry' )),
9494 "Installing `azure-cli-telemetry`..."
9595 )
9696 pip_cmd (
97- "install -e {}" .format (os .path .join (cli_src , 'azure-cli-core' )),
97+ "install -e {} --config-settings editable_mode=compat " .format (os .path .join (cli_src , 'azure-cli-core' )),
9898 "Installing `azure-cli-core`..."
9999 )
100100
101101 # azure cli has dependencies on the above packages so install this one last
102102 pip_cmd (
103- "install -e {}" .format (os .path .join (cli_src , 'azure-cli' )),
103+ "install -e {} --config-settings editable_mode=compat " .format (os .path .join (cli_src , 'azure-cli' )),
104104 "Installing `azure-cli`..."
105105 )
106106
107107 pip_cmd (
108- "install -e {}" .format (os .path .join (cli_src , 'azure-cli-testsdk' )),
108+ "install -e {} --config-settings editable_mode=compat " .format (os .path .join (cli_src , 'azure-cli-testsdk' )),
109109 "Installing `azure-cli-testsdk`..."
110110 )
111111 else :
112112 # First install packages without dependencies,
113113 # then resolve dependencies from requirements.*.txt file.
114114 pip_cmd (
115- "install -e {} --no-deps" .format (os .path .join (cli_src , 'azure-cli-telemetry' )),
115+ "install -e {} --no-deps --config-settings editable_mode=compat " .format (os .path .join (cli_src , 'azure-cli-telemetry' )),
116116 "Installing `azure-cli-telemetry`..."
117117 )
118118 pip_cmd (
119- "install -e {} --no-deps" .format (os .path .join (cli_src , 'azure-cli-core' )),
119+ "install -e {} --no-deps --config-settings editable_mode=compat " .format (os .path .join (cli_src , 'azure-cli-core' )),
120120 "Installing `azure-cli-core`..."
121121 )
122122
123123 pip_cmd (
124- "install -e {} --no-deps" .format (os .path .join (cli_src , 'azure-cli' )),
124+ "install -e {} --no-deps --config-settings editable_mode=compat " .format (os .path .join (cli_src , 'azure-cli' )),
125125 "Installing `azure-cli`..."
126126 )
127127
128128 # The dependencies of testsdk are not in requirements.txt as this package is not needed by the
129129 # azure-cli package for running commands.
130130 # Here we need to install with dependencies for azdev test.
131131 pip_cmd (
132- "install -e {}" .format (os .path .join (cli_src , 'azure-cli-testsdk' )),
132+ "install -e {} --config-settings editable_mode=compat " .format (os .path .join (cli_src , 'azure-cli-testsdk' )),
133133 "Installing `azure-cli-testsdk`..."
134134 )
135135 import platform
0 commit comments