65 lines
1.1 KiB
Python
65 lines
1.1 KiB
Python
#!/usr/bin/env python
|
|
|
|
# An example setup.py that can be used to create both standalone Windows
|
|
# executables (requires py2exe) and Mac OS X applications (requires py2app).
|
|
#
|
|
# On Windows::
|
|
#
|
|
# python setup.py py2exe
|
|
#
|
|
# On Mac OS X::
|
|
#
|
|
# python setup.py py2app
|
|
#
|
|
|
|
from distutils.core import setup
|
|
|
|
import os
|
|
|
|
# The main entry point of the program
|
|
script_file = 'hr.py'
|
|
|
|
# Setup args that apply to all setups, including ordinary distutils.
|
|
setup_args = dict(
|
|
data_files=[]
|
|
)
|
|
|
|
# py2exe options
|
|
try:
|
|
import py2exe
|
|
setup_args.update(dict(
|
|
windows=[dict(
|
|
script=script_file,
|
|
icon_resources=[(1, 'assets/app.ico')],
|
|
)],
|
|
))
|
|
except ImportError:
|
|
pass
|
|
|
|
# py2app options
|
|
try:
|
|
import py2app
|
|
setup_args.update(dict(
|
|
app=[script_file],
|
|
options=dict(py2app=dict(
|
|
argv_emulation=True,
|
|
iconfile='assets/app.icns',
|
|
)),
|
|
))
|
|
except ImportError:
|
|
pass
|
|
|
|
setup(**setup_args)
|
|
|
|
"""
|
|
Metadata-Version: 1.0
|
|
Name: UNKNOWN
|
|
Version: 0.0.0
|
|
Summary: UNKNOWN
|
|
Home-page: UNKNOWN
|
|
Author: UNKNOWN
|
|
Author-email: UNKNOWN
|
|
License: UNKNOWN
|
|
Description: UNKNOWN
|
|
Platform: UNKNOWN
|
|
"""
|