Skip to content

Commit f627efa

Browse files
author
Elliot Boschwitz
authored
Rename file from sdist method (#391)
1 parent 7db2de1 commit f627efa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build.py

+4
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ def copy_and_rename_wheels():
101101
file_extension = '.tar.gz'
102102
# rename sdist to make underscore consistent with wheel
103103
file_name = file_name.replace('mssql-cli', 'mssql_cli').replace('.tar', '')
104+
os.rename(os.path.join(utility.MSSQLCLI_DIST_DIRECTORY, pkg_name),
105+
os.path.join(utility.MSSQLCLI_DIST_DIRECTORY, file_name + file_extension))
106+
pkg_name = file_name + file_extension
107+
104108
end_index_to_replace = len(file_name)
105109

106110
first_dash = file_name.find('-')

0 commit comments

Comments
 (0)