File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1414# different from the user's PATH. When building our linux packages on various distros, we want to
1515# be build machine agnostic, so we redirect python calls to the python we bundle in. Usage of
1616# these variables can be seen in our build_scripts folder.
17- PIP = os . getenv ( 'CUSTOM_PIP' , 'pip' )
18- PYTHON = os .getenv ('CUSTOM_PYTHON' , 'python' )
17+
18+ PYTHON = os .getenv ('CUSTOM_PYTHON' , sys . executable )
1919
2020
2121def print_heading (heading , f = None ):
@@ -52,7 +52,7 @@ def build():
5252
5353 # install general requirements.
5454 utility .exec_command (
55- '{0} install -r requirements-dev.txt' .format (PIP ),
55+ '{0} -m pip install -r requirements-dev.txt' .format (PYTHON ),
5656 utility .ROOT_DIR )
5757
5858 # convert windows line endings to unix for mssql-cli bash script
@@ -138,8 +138,8 @@ def validate_package():
138138 mssqlcli_wheel_name = [pkge for pkge in mssqlcli_wheel_dir
139139 if current_platform in pkge and 'dev-latest' not in pkge ]
140140 utility .exec_command (
141- '{0} install --no-cache-dir --no-index ./dist/{1}' .format (
142- PIP ,
141+ '{0} -m pip install --no-cache-dir --no-index ./dist/{1}' .format (
142+ PYTHON ,
143143 mssqlcli_wheel_name [0 ]),
144144 root_dir , continue_on_error = False
145145 )
You can’t perform that action at this time.
0 commit comments