Add setup scripts with building instructions

This commit is contained in:
Dionisio E Alonso 2015-04-08 09:18:57 -03:00
parent efea2b5161
commit 2a916b5b4b
2 changed files with 37 additions and 0 deletions

25
setup.py Normal file
View File

@ -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
)

12
setup_py2exe.py Normal file
View File

@ -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,
)