Skip to content

Commit

Permalink
{Packaging} Keep py3 model files (#21145)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiasli authored Jan 28, 2022
1 parent 3ea435b commit 1b20637
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions build_scripts/windows/scripts/build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -111,18 +111,6 @@ copy %REPO_ROOT%\build_scripts\windows\resources\CLI_LICENSE.rtf %BUILDING_DIR%
copy %REPO_ROOT%\build_scripts\windows\resources\ThirdPartyNotices.txt %BUILDING_DIR%
copy %REPO_ROOT%\NOTICE.txt %BUILDING_DIR%

:: Use universal files and remove Py3 only files
pushd %BUILDING_DIR%\Lib\site-packages\azure\mgmt
for /f %%a in ('dir /b /s *_py3.py') do (
set PY3_FILE=%%a
if exist !PY3_FILE! del !PY3_FILE!
)
for /f %%a in ('dir /b /s *_py3.*.pyc') do (
set PY3_FILE=%%a
if exist !PY3_FILE! del !PY3_FILE!
)
popd

:: Remove .py and only deploy .pyc files
pushd %BUILDING_DIR%\Lib\site-packages
for /f %%f in ('dir /b /s *.pyc') do (
Expand Down

0 comments on commit 1b20637

Please sign in to comment.