Skip to content
Permalink
Browse files

fix windows scripts

  • Loading branch information...
sdpython committed Oct 9, 2017
1 parent 2700848 commit ceb6bb7da3171eb5287cdfbe96fc76dfd09e57a7
Showing with 15 additions and 1 deletion.
  1. +15 −1 src/pyquickhelper/pycode/windows_scripts.py
@@ -249,7 +249,7 @@ def _sversion():
%pythonexe% %current%setup.py write_version
if %errorlevel% neq 0 exit /b %errorlevel%
@echo ################# VERSION
more version.txt
more %~dp0..\\version.txt
if %errorlevel% neq 0 exit /b %errorlevel%
@echo ################# VERSION
@@ -298,8 +298,10 @@ def _sversion():
@echo ~CALL %pythonexe% %current%setup.py sdist %2 --formats=gztar,zip --verbose
%pythonexe% %current%setup.py sdist %2 --formats=gztar,zip --verbose
if %errorlevel% neq 0 exit /b %errorlevel%
pushd %current%
@echo ~CALL %pythonexe% %current%setup.py bdist_wheel %2
%pythonexe% %current%setup.py bdist_wheel %2
popd
if %errorlevel% neq 0 exit /b %errorlevel%
""" + copy_to_pypiserver

@@ -316,17 +318,25 @@ def _sversion():
@echo ~CALL %pythonexe% %current%setup.py clean_pyd
%pythonexe% %current%setup.py clean_pyd
pushd %current%
@echo ~CALL %pythonexe% %current%setup.py sdist --formats=gztar,zip --verbose
%pythonexe% %current%setup.py sdist --formats=gztar,zip --verbose
popd
if %errorlevel% neq 0 exit /b %errorlevel%
pushd %current%
@echo ~CALL %pythonexe% %current%setup.py bdist_wininst --plat-name=win-amd64
%pythonexe% %current%setup.py bdist_wininst --plat-name=win-amd64
popd
if %errorlevel% neq 0 exit /b %errorlevel%
pushd %current%
@echo ~CALL %pythonexe% %current%setup.py bdist_msi
%pythonexe% %current%setup.py bdist_msi
popd
if %errorlevel% neq 0 exit /b %errorlevel%
pushd %current%
@echo ~CALL %pythonexe% %current%setup.py bdist_wheel
%pythonexe% %current%setup.py bdist_wheel
popd
if %errorlevel% neq 0 exit /b %errorlevel%
@echo #######################################################7
@@ -422,16 +432,20 @@ def _sversion():
%pythonexe% %current%setup.py rotate --match=.tar.gz --keep=10
%pythonexe% %current%setup.py rotate --match=.whl --keep=10
rem %pythonexe% %current%setup.py sdist register
pushd %current%
%pythonexe% %current%setup.py sdist --formats=gztar upload
%pythonexe% %current%setup.py bdist_wheel upload
popd
"""

#################
#: publish the documentation
#################
windows_publish_doc = """
@echo SCRIPT: windows_publish_doc
pushd %current%
%pythonexe% -u %current%setup.py upload_docs --upload-dir=dist/html
popd
"""

#################

0 comments on commit ceb6bb7

Please sign in to comment.
You can’t perform that action at this time.