diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-10-02 17:03:33 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-10-02 17:03:33 (GMT) |
commit | 85d22ffb1ee6501a5bc3c446897b555b78631ff6 (patch) | |
tree | 151d738e0f97060dc780a331d96a8f7307407e08 /SConstruct | |
parent | c3892dc18fbfff134b83710100c73e63abd6ed25 (diff) | |
download | SCons-85d22ffb1ee6501a5bc3c446897b555b78631ff6.zip SCons-85d22ffb1ee6501a5bc3c446897b555b78631ff6.tar.gz SCons-85d22ffb1ee6501a5bc3c446897b555b78631ff6.tar.bz2 |
Remove windows executable installers
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 26 |
1 files changed, 0 insertions, 26 deletions
@@ -160,20 +160,6 @@ if build_id is None: import os.path import distutils.command -no_winpack_templates = not os.path.exists(os.path.join(os.path.split(distutils.command.__file__)[0],'wininst-9.0.exe')) -skip_win_packages = ARGUMENTS.get('SKIP_WIN_PACKAGES',False) or no_winpack_templates - -if sys.version_info[0] > 2: - # TODO: Resolve this issue. Currently fails when run on windows with - # File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/command/bdist_wininst.py", line 262, in create_exe - # cfgdata = cfgdata.encode("mbcs") - # LookupError: unknown encoding: mbcs - print("Temporary PY3: Skipping windows package builds") - skip_win_packages = True - -if skip_win_packages: - print("Skipping the build of Windows packages...") - python_ver = sys.version[0:3] # @@ -238,7 +224,6 @@ command_line_variables = [ "is the hard-coded value '%s' " % default_version + "from this SConstruct file."), - ("SKIP_WIN_PACKAGES=", "If set, skip building win32 and win64 packages."), ] Default('.', build_dir) @@ -850,12 +835,6 @@ for p in [ scons ]: distutils_formats = [] distutils_targets = [] - - if not skip_win_packages: - win64_exe = os.path.join(build, 'dist', "%s.win-amd64.exe" % pkg_version) - win32_exe = os.path.join(build, 'dist', "%s.win32.exe" % pkg_version) - distutils_targets.extend([ win32_exe , win64_exe ]) - dist_distutils_targets = [] for target in distutils_targets: @@ -1096,11 +1075,6 @@ for p in [ scons ]: commands.append("$PYTHON $PYTHONFLAGS $SETUP_PY sdist --formats=%s" % \ ','.join(distutils_formats)) - if not skip_win_packages: - commands.append("$PYTHON $PYTHONFLAGS $SETUP_PY bdist_wininst --plat-name=win32 --user-access-control auto") - - commands.append("$PYTHON $PYTHONFLAGS $SETUP_PY bdist_wininst --plat-name=win-amd64 --user-access-control auto") - env.Command(distutils_targets, build_src_files, commands) # |