@@ -49,7 +49,8 @@ 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 ),
53+ "Adding extension '{}'..." .format (path ))
5354 if result .error :
5455 raise result .error # pylint: disable=raising-bad-type
5556
@@ -90,46 +91,48 @@ def _install_cli(cli_path, deps=None):
9091 # Resolve dependencies from setup.py files.
9192 # command modules have dependency on azure-cli-core so install this first
9293 pip_cmd (
93- "install -e {}" .format (os .path .join (cli_src , 'azure-cli-telemetry' )),
94+ "install -e {} --config-settings editable_mode=compat " .format (os .path .join (cli_src , 'azure-cli-telemetry' )),
9495 "Installing `azure-cli-telemetry`..."
9596 )
9697 pip_cmd (
97- "install -e {}" .format (os .path .join (cli_src , 'azure-cli-core' )),
98+ "install -e {} --config-settings editable_mode=compat " .format (os .path .join (cli_src , 'azure-cli-core' )),
9899 "Installing `azure-cli-core`..."
99100 )
100101
101102 # azure cli has dependencies on the above packages so install this one last
102103 pip_cmd (
103- "install -e {}" .format (os .path .join (cli_src , 'azure-cli' )),
104+ "install -e {} --config-settings editable_mode=compat " .format (os .path .join (cli_src , 'azure-cli' )),
104105 "Installing `azure-cli`..."
105106 )
106107
107108 pip_cmd (
108- "install -e {}" .format (os .path .join (cli_src , 'azure-cli-testsdk' )),
109+ "install -e {} --config-settings editable_mode=compat " .format (os .path .join (cli_src , 'azure-cli-testsdk' )),
109110 "Installing `azure-cli-testsdk`..."
110111 )
111112 else :
112113 # First install packages without dependencies,
113114 # then resolve dependencies from requirements.*.txt file.
114115 pip_cmd (
115- "install -e {} --no-deps" .format (os .path .join (cli_src , 'azure-cli-telemetry' )),
116+ "install -e {} --no-deps --config-settings editable_mode=compat" .format (
117+ os .path .join (cli_src , 'azure-cli-telemetry' )),
116118 "Installing `azure-cli-telemetry`..."
117119 )
118120 pip_cmd (
119- "install -e {} --no-deps" .format (os .path .join (cli_src , 'azure-cli-core' )),
121+ "install -e {} --no-deps --config-settings editable_mode=compat" .format (
122+ os .path .join (cli_src , 'azure-cli-core' )),
120123 "Installing `azure-cli-core`..."
121124 )
122125
123126 pip_cmd (
124- "install -e {} --no-deps" .format (os .path .join (cli_src , 'azure-cli' )),
127+ "install -e {} --no-deps --config-settings editable_mode=compat " .format (os .path .join (cli_src , 'azure-cli' )),
125128 "Installing `azure-cli`..."
126129 )
127130
128131 # The dependencies of testsdk are not in requirements.txt as this package is not needed by the
129132 # azure-cli package for running commands.
130133 # Here we need to install with dependencies for azdev test.
131134 pip_cmd (
132- "install -e {}" .format (os .path .join (cli_src , 'azure-cli-testsdk' )),
135+ "install -e {} --config-settings editable_mode=compat " .format (os .path .join (cli_src , 'azure-cli-testsdk' )),
133136 "Installing `azure-cli-testsdk`..."
134137 )
135138 import platform
0 commit comments