8000 clean-up useless comments · winpython/winpython@131b137 · GitHub
[go: up one dir, main page]

Skip to content

Commit 131b137

Browse files
committed
clean-up useless comments
1 parent 225147e commit 131b137

File tree

1 file changed

+3
-24
lines changed

1 file changed

+3
-24
lines changed

make.py

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,6 @@ def __init__(
238238
self.flavor = flavor
239239

240240
# python_fname = the .zip of the python interpreter PyPy !
241-
# impot re
242-
# re.match(r'(pypy3*-v|python-)([0-9\.rcba]*)((\.|\-)(amd64|win64)?\.zip')
243241
try: # PyPy
244242
self.python_fname = self.get_package_fname(
245243
r"(pypy3|python-)([0-9]|[a-zA-Z]|.)*.zip"
@@ -248,16 +246,9 @@ def __init__(
248246
self.python_fname = self.get_package_fname(
249247
r"python-([0-9\.rcba]*)((\.|\-)amd64)?\.(zip|zip)"
250248
)
251-
# osp.join(self.winpydir, self.python_name) = Directory of Python exec
252-
# self.pythondir =osp.join(self.winpydir, self.python_name)
253249
self.python_name = Path(self.python_fname).name[:-4]
254-
self.distname = "winUNKNOWN" # f'win{self.python_name}' # PyPy ?
255-
# vlst = (
256-
# re.match(r'winpython-([0-9\.]*)', self.distname)
257-
# .groups()[0]
258-
# .split('.')
259-
# )
260-
self.python_fullversion = "winUNKNOWN" # '.'.join(vlst[:3])
250+
self.distname = "winUNKNOWN"
251+
self.python_fullversion = "winUNKNOWN"
261252

262253
@property
263254
def package_index_wiki(self):
@@ -396,19 +387,13 @@ def prepath(self):
396387
def postpath(self):
397388
"""Return PATH contents to be append to the environment variable"""
398389
path = []
399-
# if osp.isfile(self.winpydir + self.THG_PATH):
400-
# path += [r"..\t\TortoiseHg"]
401390
return path
402391

403392
@property
404393
def toolsdirs(self):
405394
"""Return tools directory list"""
406395
# formerly was joining prepared tool dir + the one of building env..
407-
return [
408-
# osp.join(
409-
# osp.dirname(osp.abspath(__file__)), 't'
410-
# )
411-
] + self._toolsdirs
396+
return [] + self._toolsdirs
412397

413398
@property
414399
def docsdirs(self):
@@ -649,8 +634,6 @@ def _create_launchers(self):
649634
"powershell.ico",
650635
command="Powershell.exe",
651636
args=r"start-process -WindowStyle Hidden -FilePath ([dollar]ENV:WINPYDIRICONS + '\scripts\cmd_ps.bat')",
652-
#command="%WINPYDIRICONS%\\scripts\\cmd_ps.bat",
653-
#args=r"",
654637
)
655638

656639
#self.create_launcher_shimmy(
@@ -673,8 +656,6 @@ def _create_launchers(self):
673656
"python.ico",
674657
command="Powershell.exe",
675658
args=r"start-process -WindowStyle Hidden -FilePath ([dollar]ENV:WINPYDIRICONS + '\scripts\winidle.bat')",
676-
#command="scripts\\Noshell.vbs scripts\\winidle.bat",
677-
#args=r"",
678659
)
679660

680661
self.create_launcher_shimmy(
@@ -714,8 +695,6 @@ def _create_launchers(self):
714695
self.create_launcher_shimmy(
715696
"Jupyter Lab.exe",
716697
"jupyter.ico",
717-
#command="$SYSDIR\cmd.exe",
718-
#args=r"/k winjupyter_lab.bat",
719698
command="winjupyter_lab.bat",
720699
args=r"",
721700
workdir=r".\scripts"

0 commit comments

Comments
 (0)
0