From 2a916b5b4bd074c026f1ab5f618411e895560e14 Mon Sep 17 00:00:00 2001 From: Dionisio E Alonso Date: Wed, 8 Apr 2015 09:18:57 -0300 Subject: [PATCH] Add setup scripts with building instructions --- setup.py | 25 +++++++++++++++++++++++++ setup_py2exe.py | 12 ++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 setup.py create mode 100644 setup_py2exe.py diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..e6e88b0 --- /dev/null +++ b/setup.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- + +# 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 script without Python + +from cx_Freeze import setup, Executable + +build_exe_options = { + 'create_shared_zip': False, + 'include_msvcr': True # skip error msvcr100.dll missing +} + +executables = [ + Executable('SystemInformation.py', + appendScriptToExe=True) +] + +setup(name='SysInfo', + version='0.1', + description='Windows system information gatherer', + options={'build_exe': build_exe_options}, + executables=executables + ) diff --git a/setup_py2exe.py b/setup_py2exe.py new file mode 100644 index 0000000..9b78960 --- /dev/null +++ b/setup_py2exe.py @@ -0,0 +1,12 @@ +from distutils.core import setup +import py2exe +import sys +import os + +sys.argv.append('py2exe') + +setup( + options={'py2exe': {'bundle_files': 1, 'compressed': True}}, + windows=[{'script': 'SystemInformation.py'}], + zipfile=None, +)