@@ -93,10 +93,10 @@ def build_nsis(srcname, dstname, data):
93
93
94
94
class WinPythonDistribution (object ):
95
95
"""WinPython distribution"""
96
- MINGW32_PATH = r'\tools \mingw32\bin'
97
- R_PATH = r'\tools \R\bin'
98
- JULIA_PATH = r'\tools \Julia\bin'
99
- NODEJS_PATH = r'\tools \n'
96
+ MINGW32_PATH = r'\t \mingw32\bin'
97
+ R_PATH = r'\t \R\bin'
98
+ JULIA_PATH = r'\t \Julia\bin'
99
+ NODEJS_PATH = r'\t \n'
100
100
101
101
def __init__ (self , build_number , release_level , target , wheeldir ,
102
102
toolsdirs = None , verbose = False , simulation = False ,
@@ -134,15 +134,15 @@ def package_index_wiki(self):
134
134
def get_tool_path (relpath , checkfunc ):
135
135
if self .simulation :
136
136
for dirname in self .toolsdirs :
137
- path = dirname + relpath .replace (r'\tools ' , '' )
137
+ path = dirname + relpath .replace (r'\t ' , '' )
138
138
if checkfunc (path ):
139
139
return path
140
140
else :
141
141
path = self .winpydir + relpath
142
142
if checkfunc (path ):
143
143
return path
144
144
145
- if get_tool_path (r'\tools \SciTE.exe' , osp .isfile ):
145
+ if get_tool_path (r'\t \SciTE.exe' , osp .isfile ):
146
146
installed_tools += [('SciTE' , '3.3.7' )]
147
147
148
148
rpath = get_tool_path (self .R_PATH , osp .isdir )
@@ -162,12 +162,12 @@ def get_tool_path(relpath, checkfunc):
162
162
npmver = utils .get_npmjs_version (nodepath )
163
163
installed_tools += [('npmjs' , npmver )]
164
164
165
- pandocexe = get_tool_path (r'\tools \pandoc.exe' , osp .isfile )
165
+ pandocexe = get_tool_path (r'\t \pandoc.exe' , osp .isfile )
166
166
if pandocexe is not None :
167
167
pandocver = utils .get_pandoc_version (osp .dirname (pandocexe ))
168
168
installed_tools += [('Pandoc' , pandocver )]
169
169
170
- ffmpegexe = get_tool_path (r'\tools \ffmpeg.exe' , osp .isfile )
170
+ ffmpegexe = get_tool_path (r'\t \ffmpeg.exe' , osp .isfile )
171
171
if ffmpegexe is not None :
172
172
ffmpegver = utils .get_ffmpeg_version (osp .dirname (ffmpegexe ))
173
173
installed_tools += [('ffmpeg' , ffmpegver )]
@@ -241,7 +241,7 @@ def prepath(self):
241
241
"""Return PATH contents to be prepend to the environment variable"""
242
242
path = [r"Lib\site-packages\PyQt5" , r"Lib\site-packages\PyQt4" ,
243
243
"" , # Python root directory (python.exe)
244
- "DLLs" , "Scripts" , r"..\tools " , r"..\tools \mingw32\bin"
244
+ "DLLs" , "Scripts" , r"..\t " , r"..\t \mingw32\bin"
245
245
]
246
246
if self .distribution .architecture == 32 \
247
247
and osp .isdir (self .winpydir + self .MINGW32_PATH ):
@@ -264,13 +264,13 @@ def postpath(self):
264
264
"""Return PATH contents to be append to the environment variable"""
265
265
path = []
266
266
# if osp.isfile(self.winpydir + self.THG_PATH):
267
- # path += [r"..\tools \TortoiseHg"]
267
+ # path += [r"..\t \TortoiseHg"]
268
268
return path
269
269
270
270
@property
271
271
def toolsdirs (self ):
272
272
"""Return tools directory list"""
273
- return [osp .join (osp .dirname (osp .abspath (__file__ )), 'tools ' )] + self ._toolsdirs
273
+ return [osp .join (osp .dirname (osp .abspath (__file__ )), 't ' )] + self ._toolsdirs
274
274
275
275
@property
276
276
def docsdirs (self ):
@@ -381,6 +381,8 @@ def create_installer(self):
381
381
('ARCH' , self .winpy_arch ),
382
382
('VERSION' , '%s.%d%s' % (self .python_fullversion ,
383
383
self .build_number , self .flavor )),
384
+ ('VERSION_INSTALL' , '%s.%d' % (self .python_fullversion ,
385
+ self .build_number )),
384
386
('RELEASELEVEL' , self .release_level ),)
385
387
build_nsis ('installer.nsi' , fname , data )
386
388
self ._print_done ()
@@ -471,15 +473,15 @@ def _install_all_other_packages(self):
471
473
def _copy_dev_tools (self ):
472
474
"""Copy dev tools"""
473
475
self ._print ("Copying tools" )
474
- toolsdir = osp .join (self .winpydir , 'tools ' )
476
+ toolsdir = osp .join (self .winpydir , 't ' )
475
477
os .mkdir (toolsdir )
476
- for dirname in self .toolsdirs :
478
+ for dirname in self .toolsdirs : # the ones in the make.py script environment
477
479
for name in os .listdir (dirname ):
478
480
path = osp .join (dirname , name )
479
481
copy = shutil .copytree if osp .isdir (path ) else shutil .copyfile
480
- copy (path , osp .join (toolsdir , name ))
481
482
if self .verbose :
482
483
print (path + ' --> ' + osp .join (toolsdir , name ))
484
+ copy (path , osp .join (toolsdir , name ))
483
485
self ._print_done ()
484
486
485
487
def _copy_dev_docs (self ):
@@ -598,8 +600,8 @@ def _create_batch_scripts_initial(self):
598
600
rem ******************
599
601
rem handle R if included
600
602
rem ******************
601
- if not exist "%WINPYDIRBASE%\tools \R\bin" goto r_bad
602
- set R_HOME=%WINPYDIRBASE%\tools \R
603
+ if not exist "%WINPYDIRBASE%\t \R\bin" goto r_bad
604
+ set R_HOME=%WINPYDIRBASE%\t \R
603
605
if "%WINPYARCH%"=="WIN32" set R_HOMEbin=%R_HOME%\bin\i386
604
606
if not "%WINPYARCH%"=="WIN32" set R_HOMEbin=%R_HOME%\bin\x64
605
607
:r_bad
@@ -608,8 +610,8 @@ def _create_batch_scripts_initial(self):
608
610
rem ******************
609
611
rem handle Julia if included
610
612
rem ******************
611
- if not exist "%WINPYDIRBASE%\tools \Julia\bin" goto julia_bad
612
- set JULIA_HOME=%WINPYDIRBASE%\tools \Julia\bin\
613
+ if not exist "%WINPYDIRBASE%\t \Julia\bin" goto julia_bad
614
+ set JULIA_HOME=%WINPYDIRBASE%\t \Julia\bin\
613
615
set JULIA_EXE=julia.exe
614
616
set JULIA=%JULIA_HOME%%JULIA_EXE%
615
617
set JULIA_PKGDIR=%WINPYDIRBASE%\settings\.julia
@@ -618,8 +620,8 @@ def _create_batch_scripts_initial(self):
618
620
rem ******************
619
621
rem handle ffmpeg if included
620
622
rem ******************
621
- if not exist "%WINPYDIRBASE%\tools \ffmpeg.exe" goto ffmpeg_bad
622
- set IMAGEIO_FFMPEG_EXE=%WINPYDIRBASE%\tools \ffmpeg.exe
623
+ if not exist "%WINPYDIRBASE%\t \ffmpeg.exe" goto ffmpeg_bad
624
+ set IMAGEIO_FFMPEG_EXE=%WINPYDIRBASE%\t \ffmpeg.exe
623
625
624
626
:ffmpeg_bad
625
627
@@ -679,8 +681,8 @@ def _create_batch_scripts_initial(self):
679
681
#####################
680
682
### handle R if included
681
683
#####################
682
- if (Test-Path "$env:WINPYDIR\..\tools \R\bin") {
683
- $env:R_HOME = "$env:WINPYDIR\..\tools \R"
684
+ if (Test-Path "$env:WINPYDIR\..\t \R\bin") {
685
+ $env:R_HOME = "$env:WINPYDIR\..\t \R"
684
686
$env:R_HOMEbin = "$env:R_HOME\bin\x64"
685
687
if ("$env:WINPYARCH" -eq "WIN32") {
686
688
$env:R_HOMEbin = "$env:R_HOME\bin\i386"
@@ -690,8 +692,8 @@ def _create_batch_scripts_initial(self):
690
692
#####################
691
693
### handle Julia if included
692
694
#####################
693
- if (Test-Path "$env:WINPYDIR\..\tools \Julia\bin") {
694
- $env:JULIA_HOME = "$env:WINPYDIR\..\tools \Julia\bin\"
695
+ if (Test-Path "$env:WINPYDIR\..\t \Julia\bin") {
696
+ $env:JULIA_HOME = "$env:WINPYDIR\..\t \Julia\bin\"
695
697
$env:JULIA_EXE = "julia.exe"
696
698
$env:JULIA = "$env:JULIA_HOME$env:JULIA_EXE"
697
699
$env:JULIA_PKGDIR = "$env:WINPYDIR\..\settings\.julia"
@@ -700,8 +702,8 @@ def _create_batch_scripts_initial(self):
700
702
#####################
701
703
### handle ffmpeg if included
702
704
#####################
703
- if (Test-Path "$env:WINPYDIR\..\tools \ffmpeg.exe") {
704
- $env:IMAGEIO_FFMPEG_EXE = "%WINPYDIRBASE%\tools \ffmpeg.exe"
705
+ if (Test-Path "$env:WINPYDIR\..\t \ffmpeg.exe") {
706
+ $env:IMAGEIO_FFMPEG_EXE = "%WINPYDIRBASE%\t \ffmpeg.exe"
705
707
}
706
708
707
709
#####################
@@ -1368,6 +1370,6 @@ def make_all(build_number, release_level, pyver, architecture,
1368
1370
install_options = r'--no-index --pre --trusted-host=None' ,
1369
1371
find_links = r'D:\Winpython\packages.srcreq' ,
1370
1372
source_dirs = r'D:\WinPython\basedir34\packages.src D:\WinPython\basedir34\packages.win-amd64' ,
1371
- toolsdirs = r'D:\WinPython\basedir34\Tools .Slim' ,
1373
+ toolsdirs = r'D:\WinPython\basedir34\t .Slim' ,
1372
1374
docsdirs = r'D:\WinPython\basedir34\docs.Slim'
1373
1375
)
0 commit comments