@@ -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 ):
@@ -473,15 +473,15 @@ def _install_all_other_packages(self):
473
473
def _copy_dev_tools (self ):
474
474
"""Copy dev tools"""
475
475
self ._print ("Copying tools" )
476
- toolsdir = osp .join (self .winpydir , 'tools ' )
476
+ toolsdir = osp .join (self .winpydir , 't ' )
477
477
os .mkdir (toolsdir )
478
- for dirname in self .toolsdirs :
478
+ for dirname in self .toolsdirs : # the ones in the make.py script environment
479
479
for name in os .listdir (dirname ):
480
480
path = osp .join (dirname , name )
481
481
copy = shutil .copytree if osp .isdir (path ) else shutil .copyfile
482
- copy (path , osp .join (toolsdir , name ))
483
482
if self .verbose :
484
483
print (path + ' --> ' + osp .join (toolsdir , name ))
484
+ copy (path , osp .join (toolsdir , name ))
485
485
self ._print_done ()
486
486
487
487
def _copy_dev_docs (self ):
@@ -600,8 +600,8 @@ def _create_batch_scripts_initial(self):
600
600
rem ******************
601
601
rem handle R if included
602
602
rem ******************
603
- if not exist "%WINPYDIRBASE%\tools \R\bin" goto r_bad
604
- set R_HOME=%WINPYDIRBASE%\tools \R
603
+ if not exist "%WINPYDIRBASE%\t \R\bin" goto r_bad
604
+ set R_HOME=%WINPYDIRBASE%\t \R
605
605
if "%WINPYARCH%"=="WIN32" set R_HOMEbin=%R_HOME%\bin\i386
606
606
if not "%WINPYARCH%"=="WIN32" set R_HOMEbin=%R_HOME%\bin\x64
607
607
:r_bad
@@ -610,8 +610,8 @@ def _create_batch_scripts_initial(self):
610
610
rem ******************
611
611
rem handle Julia if included
612
612
rem ******************
613
- if not exist "%WINPYDIRBASE%\tools \Julia\bin" goto julia_bad
614
- 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\
615
615
set JULIA_EXE=julia.exe
616
616
set JULIA=%JULIA_HOME%%JULIA_EXE%
617
617
set JULIA_PKGDIR=%WINPYDIRBASE%\settings\.julia
@@ -620,8 +620,8 @@ def _create_batch_scripts_initial(self):
620
620
rem ******************
621
621
rem handle ffmpeg if included
622
622
rem ******************
623
- if not exist "%WINPYDIRBASE%\tools \ffmpeg.exe" goto ffmpeg_bad
624
- 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
625
625
626
626
:ffmpeg_bad
627
627
@@ -681,8 +681,8 @@ def _create_batch_scripts_initial(self):
681
681
#####################
682
682
### handle R if included
683
683
#####################
684
- if (Test-Path "$env:WINPYDIR\..\tools \R\bin") {
685
- $env:R_HOME = "$env:WINPYDIR\..\tools \R"
684
+ if (Test-Path "$env:WINPYDIR\..\t \R\bin") {
685
+ $env:R_HOME = "$env:WINPYDIR\..\t \R"
686
686
$env:R_HOMEbin = "$env:R_HOME\bin\x64"
687
687
if ("$env:WINPYARCH" -eq "WIN32") {
688
688
$env:R_HOMEbin = "$env:R_HOME\bin\i386"
@@ -692,8 +692,8 @@ def _create_batch_scripts_initial(self):
692
692
#####################
693
693
### handle Julia if included
694
694
#####################
695
- if (Test-Path "$env:WINPYDIR\..\tools \Julia\bin") {
696
- $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\"
697
697
$env:JULIA_EXE = "julia.exe"
698
698
$env:JULIA = "$env:JULIA_HOME$env:JULIA_EXE"
699
699
$env:JULIA_PKGDIR = "$env:WINPYDIR\..\settings\.julia"
@@ -702,8 +702,8 @@ def _create_batch_scripts_initial(self):
702
702
#####################
703
703
### handle ffmpeg if included
704
704
#####################
705
- if (Test-Path "$env:WINPYDIR\..\tools \ffmpeg.exe") {
706
- $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"
707
707
}
708
708
709
709
#####################
@@ -1370,6 +1370,6 @@ def make_all(build_number, release_level, pyver, architecture,
1370
1370
install_options = r'--no-index --pre --trusted-host=None' ,
1371
1371
find_links = r'D:\Winpython\packages.srcreq' ,
1372
1372
source_dirs = r'D:\WinPython\basedir34\packages.src D:\WinPython\basedir34\packages.win-amd64' ,
1373
- toolsdirs = r'D:\WinPython\basedir34\Tools .Slim' ,
1373
+ toolsdirs = r'D:\WinPython\basedir34\t .Slim' ,
1374
1374
docsdirs = r'D:\WinPython\basedir34\docs.Slim'
1375
1375
)
0 commit comments