Skip to content

Commit

Permalink
Rename file from sdist method (#391)
Browse files Browse the repository at this point in the history
  • Loading branch information
Elliot Boschwitz authored Dec 13, 2019
1 parent 7db2de1 commit f627efa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ def copy_and_rename_wheels():
file_extension = '.tar.gz'
# rename sdist to make underscore consistent with wheel
file_name = file_name.replace('mssql-cli', 'mssql_cli').replace('.tar', '')
os.rename(os.path.join(utility.MSSQLCLI_DIST_DIRECTORY, pkg_name),
os.path.join(utility.MSSQLCLI_DIST_DIRECTORY, file_name + file_extension))
pkg_name = file_name + file_extension

end_index_to_replace = len(file_name)

first_dash = file_name.find('-')
Expand Down

0 comments on commit f627efa

Please sign in to comment.