-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathsetup.py
More file actions
45 lines (40 loc) · 1.83 KB
/
setup.py
File metadata and controls
45 lines (40 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/env python3
#****************************************************************************
# setup.py, provides a distutils script for use with cx_Freeze
#
# Creates a standalone windows executable
#
# Run the build process by running the command 'python setup.py build'
#
# If everything works well you should find a subdirectory in the build
# subdirectory that contains the files needed to run the application
#
# ConvertAll, a units conversion program
# Copyright (C) 2017, Douglas W. Bell
#
# This is free software; you can redistribute it and/or modify it under the
# terms of the GNU General Public License, either Version 2 or any later
# version. This program is distributed in the hope that it will be useful,
# but WITTHOUT ANY WARRANTY. See the included LICENSE file for details.
#*****************************************************************************
import sys
from cx_Freeze import setup, Executable
from convertall import __version__
base = None
if sys.platform == 'win32':
base = 'Win32GUI'
extraFiles = [('../data', 'data'), ('../doc', 'doc'), ('../icons', 'icons'),
('../source', 'source'), ('../translations', 'translations'),
('../win', '.')]
setup(name = 'convertall',
version = __version__,
description = 'ConvertAll, a units conversion program',
options = {'build_exe': {'includes': 'atexit',
'include_files': extraFiles,
'excludes': ['*.pyc'],
'zip_include_packages': ['*'],
'zip_exclude_packages': [],
'include_msvcr': True,
'build_exe': '../../convertall-0.7'}},
executables = [Executable('convertall.py', base=base,
icon='../win/convertall.ico')])