Skip to content

Commit e9d8e55

Browse files
committed
Updating build scripts for deb and rpm to ignore the dev latest package of mssql cli wheel.
1 parent fb0ed22 commit e9d8e55

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

build_scripts/debian/build.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ cd -
6464

6565
# Install mssql-cli wheel.
6666
dist_dir=$source_dir/dist
67-
all_modules=`find $dist_dir -name "*.whl"`
67+
68+
# Ignore the dev latest wheel since build outputs two.
69+
all_modules=`find $dist_dir -not -name "mssql_cli-dev-latest-py2.py3-none-manylinux1_x86_64.whl"`
6870
$source_dir/python_env/bin/pip3 install $all_modules
6971

7072
# Add the debian files.

build_scripts/rpm/mssql-cli.spec

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ export CUSTOM_PIP=%{python_dir}/bin/pip3
6969
%install
7070
# Install mssql-cli
7171
dist_dir=%{repo_path}/dist
72-
all_modules=`find $dist_dir -name "mssql_cli-%{version}-py2.py3-none-manylinux1_x86_64.whl"`
72+
73+
# Ignore the dev latest wheel since build outputs two.
74+
all_modules=`find $dist_dir -not -name "mssql_cli-dev-latest-py2.py3-none-manylinux1_x86_64.whl"`
7375
%{python_dir}/bin/pip3 install $all_modules
7476

7577
# Create executable

0 commit comments

Comments
 (0)