Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b7b7926

Browse files
authored
Merge pull request #608 from stonebig/master
reduce default path length
2 parents ecd996d + 64c3ffc commit b7b7926

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

make.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def get_tool_path(relpath, checkfunc):
189189
python_desc = 'Python programming language with standard library'
190190
return """## WinPython %s
191191
192-
The following packages are included in WinPython-%s v%s%s.
192+
The following packages are included in WinPython-%sbit v%s%s.
193193
194194
### Tools
195195
@@ -220,7 +220,7 @@ def python_dir(self):
220220
@property
221221
def winpy_arch(self):
222222
"""Return WinPython architecture"""
223-
return '%dbit' % self.distribution.architecture
223+
return '%d' % self.distribution.architecture
224224

225225
@property
226226
def pyqt_arch(self):

portable/installer.nsi

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Licensed under the terms of the MIT License
1818
;================================================================
1919

2020
!define ID "WinPython"
21+
!define ID_INSTALL "WinPy"
2122
!define FILE_DESCRIPTION "${ID} Installer"
2223
!define COMPANY "${ID}"
2324
!define BRANDING "${ID}, the portable Python Distribution for Scientists"
@@ -34,8 +35,11 @@ SetCompressorDictSize 16 ; MB
3435
; General
3536
;------------------------------------------------------------------------------
3637
Name "${ID} ${ARCH} ${VERSION}${RELEASELEVEL}"
37-
OutFile "${DISTDIR}\..\${ID}-${ARCH}-${VERSION}${RELEASELEVEL}.exe"
38-
InstallDir "$EXEDIR\${ID}-${ARCH}-${VERSION}${RELEASELEVEL}"
38+
OutFile "${DISTDIR}\..\${ID}${ARCH}-${VERSION}${RELEASELEVEL}.exe"
39+
40+
; 2018-03-31 need to minimize path length of installation:
41+
;InstallDir "$EXEDIR\${ID}${ARCH}-${VERSION}${RELEASELEVEL}"
42+
InstallDir "$EXEDIR\${ID_INSTALL}${ARCH}-${VERSION}${RELEASELEVEL}"
3943
BrandingText "${BRANDING}"
4044
XPStyle on
4145
RequestExecutionLevel user

winpython/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@
2828
OTHER DEALINGS IN THE SOFTWARE.
2929
"""
3030

31-
__version__ = '1.9.20180301'
31+
__version__ = '1.9.20180331'
3232
__license__ = __doc__
3333
__project_url__ = 'http://winpython.github.io/'

0 commit comments

Comments
 (0)