import sys
import os
from cx_Freeze import setup, Executable

paths = []
paths.extend(sys.path)
paths.append('whacked4')

build_exe_options = {
	'packages': [],
	'path': paths,
	'include_files': ['res', 'cfg', 'docs', 'LICENSE', 'README.md'],
	'optimize': 2,
	'include_msvcr': True
}
build_exe_options['path'].append('src')

base = None
if sys.platform == 'win32':
    base = 'Win32GUI'

exe = Executable(
	'src/main.py',
	base=base,
	targetName=os.environ['app_name_lower'] + '.exe',
	icon='res/icon-hatchet.ico'
)

setup(
	name = os.environ['app_title'],
	version = os.environ['app_version_value'],
	description = os.environ['app_description'],
	options = {'build_exe': build_exe_options},
	executables = [exe]
)

import sys
import os
from cx_Freeze import setup, Executable

paths = []
paths.extend(sys.path)
paths.append('src')

build_exe_options = {
	'path': paths,
	'packages': ['whacked4'],
	'include_files': ['res', 'cfg', 'docs', 'LICENSE', 'README.md'],
	'optimize': 2,
	'include_msvcr': True
}

base = None
if sys.platform == 'win32':
    base = 'Win32GUI'

exe = Executable(
	'src/main.py',
	base=base,
	targetName=os.environ['app_name_lower'] + '.exe',
	icon='res/icon-hatchet.ico'
)

setup(
	name = os.environ['app_title'],
	version = os.environ['app_version_value'],
	description = os.environ['app_description'],
	options = {'build_exe': build_exe_options},
	executables = [exe]
)

Update distutils script. Release builds still twice the size though...
Update distutils script. Release builds still twice the size though...

  import sys
  import os
  from cx_Freeze import setup, Executable
  
  paths = []
  paths.extend(sys.path)
- paths.append('whacked4')
+ paths.append('src')
  
  build_exe_options = {
- 	'packages': [],
  	'path': paths,
+ 	'packages': ['whacked4'],
  	'include_files': ['res', 'cfg', 'docs', 'LICENSE', 'README.md'],
  	'optimize': 2,
  	'include_msvcr': True
  }
- build_exe_options['path'].append('src')
  
  base = None
  if sys.platform == 'win32':
      base = 'Win32GUI'
  
  exe = Executable(
  	'src/main.py',
  	base=base,
  	targetName=os.environ['app_name_lower'] + '.exe',
  	icon='res/icon-hatchet.ico'
  )
  
  setup(
  	name = os.environ['app_title'],
  	version = os.environ['app_version_value'],
  	description = os.environ['app_description'],
  	options = {'build_exe': build_exe_options},
  	executables = [exe]
  )
  
Update distutils script. Release builds still twice the size though...
## Code Before:
import sys
import os
from cx_Freeze import setup, Executable

paths = []
paths.extend(sys.path)
paths.append('whacked4')

build_exe_options = {
	'packages': [],
	'path': paths,
	'include_files': ['res', 'cfg', 'docs', 'LICENSE', 'README.md'],
	'optimize': 2,
	'include_msvcr': True
}
build_exe_options['path'].append('src')

base = None
if sys.platform == 'win32':
    base = 'Win32GUI'

exe = Executable(
	'src/main.py',
	base=base,
	targetName=os.environ['app_name_lower'] + '.exe',
	icon='res/icon-hatchet.ico'
)

setup(
	name = os.environ['app_title'],
	version = os.environ['app_version_value'],
	description = os.environ['app_description'],
	options = {'build_exe': build_exe_options},
	executables = [exe]
)

## Instruction:
Update distutils script. Release builds still twice the size though...
## Code After:
import sys
import os
from cx_Freeze import setup, Executable

paths = []
paths.extend(sys.path)
paths.append('src')

build_exe_options = {
	'path': paths,
	'packages': ['whacked4'],
	'include_files': ['res', 'cfg', 'docs', 'LICENSE', 'README.md'],
	'optimize': 2,
	'include_msvcr': True
}

base = None
if sys.platform == 'win32':
    base = 'Win32GUI'

exe = Executable(
	'src/main.py',
	base=base,
	targetName=os.environ['app_name_lower'] + '.exe',
	icon='res/icon-hatchet.ico'
)

setup(
	name = os.environ['app_title'],
	version = os.environ['app_version_value'],
	description = os.environ['app_description'],
	options = {'build_exe': build_exe_options},
	executables = [exe]
)
