@@ -238,8 +238,6 @@ def __init__(
238
238
self .flavor = flavor
239
239
240
240
# 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')
243
241
try : # PyPy
244
242
self .python_fname = self .get_package_fname (
245
243
r"(pypy3|python-)([0-9]|[a-zA-Z]|.)*.zip"
@@ -248,16 +246,9 @@ def __init__(
248
246
self .python_fname = self .get_package_fname (
249
247
r"python-([0-9\.rcba]*)((\.|\-)amd64)?\.(zip|zip)"
250
248
)
251
- # osp.join(self.winpydir, self.python_name) = Directory of Python exec
252
- # self.pythondir =osp.join(self.winpydir, self.python_name)
253
249
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"
261
252
262
253
@property
263
254
def package_index_wiki (self ):
@@ -396,19 +387,13 @@ def prepath(self):
396
387
def postpath (self ):
397
388
"""Return PATH contents to be append to the environment variable"""
398
389
path = []
399
- # if osp.isfile(self.winpydir + self.THG_PATH):
400
- # path += [r"..\t\TortoiseHg"]
401
390
return path
402
391
403
392
@property
404
393
def toolsdirs (self ):
405
394
"""Return tools directory list"""
406
395
# 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
412
397
413
398
@property
414
399
def docsdirs (self ):
@@ -649,8 +634,6 @@ def _create_launchers(self):
649
634
"powershell.ico" ,
650
635
command = "Powershell.exe" ,
651
636
args = r"start-process -WindowStyle Hidden -FilePath ([dollar]ENV:WINPYDIRICONS + '\scripts\cmd_ps.bat')" ,
652
- #command="%WINPYDIRICONS%\\scripts\\cmd_ps.bat",
653
- #args=r"",
654
637
)
655
638
656
639
#self.create_launcher_shimmy(
@@ -673,8 +656,6 @@ def _create_launchers(self):
673
656
"python.ico" ,
674
657
command = "Powershell.exe" ,
675
658
args = r"start-process -WindowStyle Hidden -FilePath ([dollar]ENV:WINPYDIRICONS + '\scripts\winidle.bat')" ,
676
- #command="scripts\\Noshell.vbs scripts\\winidle.bat",
677
- #args=r"",
678
659
)
679
660
680
661
self .create_launcher_shimmy (
@@ -714,8 +695,6 @@ def _create_launchers(self):
714
695
self .create_launcher_shimmy (
715
696
"Jupyter Lab.exe" ,
716
697
"jupyter.ico" ,
717
- #command="$SYSDIR\cmd.exe",
718
- #args=r"/k winjupyter_lab.bat",
719
698
command = "winjupyter_lab.bat" ,
720
699
args = r"" ,
721
700
workdir = r".\scripts"
0 commit comments