8000 unused code · LeeXyan/winpython@1e84f38 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1e84f38

Browse files
committed
unused code
1 parent cb43356 commit 1e84f38

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

diff.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@
1818
# Local imports
1919
from winpython import utils
2020

21-
# pep503 defines normalized package names: www.python.org/dev/peps/pep-0503
22-
def normalize(name):
23-
return re.sub(r"[-_.]+", "-", name).lower()
24-
2521

2622
CHANGELOGS_DIR = str(Path(__file__).parent / "changelogs")
2723
assert Path(CHANGELOGS_DIR).is_dir()

make.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -843,20 +843,8 @@ def _create_batch_scripts_initial(self):
843843
self.create_batch_script(
844844
"cmd_ps.bat",
845845
r"""@echo off
846-
rem safe bet
847846
call "%~dp0env_for_icons.bat"
848847
Powershell.exe -Command "& {Start-Process PowerShell.exe -ArgumentList '-ExecutionPolicy RemoteSigned -noexit -File ""%~dp0WinPython_PS_Prompt.ps1""'}"
849-
exit
850-
""",
851-
do_changes=changes,
852-
)
853-
854-
self.create_batch_script(
855-
"WinPython_Interpreter_PS.bat",
856-
r"""@echo off
857-
rem no safe bet (for comparisons)
858-
Powershell.exe -Command "& {Start-Process PowerShell.exe -ArgumentList '-ExecutionPolicy RemoteSigned -noexit -File ""%~dp0WinPython_PS_Prompt.ps1""'}"
859-
exit
860848
""",
861849
do_changes=changes,
862850
)
@@ -909,10 +897,6 @@ def _create_batch_scripts_initial(self):
909897
if not exist "%HOME%\.spyder-py%WINPYVER:~0,1%" mkdir "%HOME%\.spyder-py%WINPYVER:~0,1%"
910898
if not exist "%HOME%\.spyder-py%WINPYVER:~0,1%\workingdir" echo %HOME%\Notebooks>"%HOME%\.spyder-py%WINPYVER:~0,1%\workingdir"
911899
912-
rem ******* make cython use mingwpy part *******
913-
if not exist "%WINPYDIRBASE%\settings\pydistutils.cfg" goto no_cython
914-
if not exist "%HOME%\pydistutils.cfg" xcopy "%WINPYDIRBASE%\settings\pydistutils.cfg" "%HOME%"
915-
:no_cython
916900
""",
917901
do_changes=changes,
918902
)

0 commit comments

Comments
 (0)
0