Skip to content

survive better to space #323

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 2, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions make.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,9 +344,9 @@ def create_python_batch(self, name, script_name,

if command is None:
if script_name.endswith('.pyw'):
command = 'start %WINPYDIR%\pythonw.exe'
command = 'start "%WINPYDIR%\pythonw.exe"'
else:
command = '%WINPYDIR%\python.exe'
command = '"%WINPYDIR%\python.exe"'
changedir = ''
if workdir is not None:
workdir = (workdir)
Expand Down Expand Up @@ -597,7 +597,7 @@ def _create_batch_scripts_initial(self):
""")

self.create_batch_script('env_for_icons.bat', r"""@echo off
call %~dp0env.bat
call "%~dp0env.bat"
set WINPYWORKDIR=%~dp0..\Notebooks
FOR /F "delims=" %%i IN ('cscript /nologo "%~dp0WinpythonIni.vbs"') DO set winpythontoexec=%%i
%winpythontoexec%set winpythontoexec=
Expand Down Expand Up @@ -693,7 +693,7 @@ def _create_batch_scripts(self):


self.create_batch_script('make_cython_use_mingw.bat', r"""@echo off
call %~dp0env.bat
call "%~dp0env.bat"

rem ******************
rem mingw part
Expand All @@ -719,24 +719,24 @@ def _create_batch_scripts(self):
""")

self.create_batch_script('make_cython_use_vc.bat', r"""@echo off
call %~dp0env.bat
call "%~dp0env.bat"
set pydistutils_cfg=%WINPYDIR%\..\settings\pydistutils.cfg
echo [config]>%pydistutils_cfg%
""")

self.create_batch_script('make_winpython_movable.bat',r"""@echo off
call %~dp0env.bat
call "%~dp0env.bat"
echo patch pip and current launchers for move

%WINPYDIR%\python.exe -c "from winpython import wppm;dist=wppm.Distribution(r'%WINPYDIR%');dist.patch_standard_packages('pip', to_movable=True)"
"%WINPYDIR%\python.exe" -c "from winpython import wppm;dist=wppm.Distribution(r'%WINPYDIR%');dist.patch_standard_packages('pip', to_movable=True)"
pause
""")

self.create_batch_script('make_winpython_fix.bat',r"""@echo off
call %~dp0env.bat
call "%~dp0env.bat"
echo patch pip and current launchers for non-move

%WINPYDIR%\python.exe -c "from winpython import wppm;dist=wppm.Distribution(r'%WINPYDIR%');dist.patch_standard_packages('pip', to_movable=False)"
"%WINPYDIR%\python.exe" -c "from winpython import wppm;dist=wppm.Distribution(r'%WINPYDIR%');dist.patch_standard_packages('pip', to_movable=False)"
pause
""")

Expand Down Expand Up @@ -802,7 +802,7 @@ def _create_batch_scripts(self):
self.create_batch_script('spyder_reset.bat',r"""@echo off
call "%~dp0env_for_icons.bat"
cd/D "%WINPYWORKDIR%"
%WINPYDIR%\scripts\spyder.exe --reset %*
"%WINPYDIR%\scripts\spyder.exe" --reset %*
""")

self.create_batch_script('ipython_notebook.bat',r"""@echo off
Expand Down Expand Up @@ -863,24 +863,24 @@ def _create_batch_scripts(self):
workdir=r'"%WINPYDIR%\Scripts"')
self.create_batch_script('register_python_for_all.bat',
r"""@echo off
call %~dp0env.bat
call %~dp0register_python.bat --all""")
call "%~dp0env.bat"
call "%~dp0register_python.bat" --all""")

self.create_batch_script('wpcp.bat',r"""@echo off
call "%~dp0env_for_icons.bat"
cd/D "%WINPYWORKDIR%"
%WINPYDIR%\python.exe -m winpython.controlpanel %*
"%WINPYDIR%\python.exe" -m winpython.controlpanel %*
""")

#self.create_python_batch('wpcp.bat', '-m winpython.controlpanel',
# workdir=r'"%WINPYDIR%\Scripts"')

self.create_batch_script('upgrade_pip.bat', r"""@echo off
call %~dp0env.bat
call "%~dp0env.bat"
echo this will upgrade pip with latest version, then patch it for WinPython portability ok ?
pause
%WINPYDIR%\python.exe -m pip install --upgrade --force-reinstall pip
%WINPYDIR%\python.exe -c "from winpython import wppm;dist=wppm.Distribution(r'%WINPYDIR%');dist.patch_standard_packages('pip', to_movable=True)
"%WINPYDIR%\python.exe" -m pip install --upgrade --force-reinstall pip
"%WINPYDIR%\python.exe" -c "from winpython import wppm;dist=wppm.Distribution(r'%WINPYDIR%');dist.patch_standard_packages('pip', to_movable=True)
pause
""")

Expand Down