forked from cloudmatrix/esky
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b5a7b22
commit fee193e
Showing
6 changed files
with
158 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,31 @@ | ||
|
||
# Use bdist_esky instead of py2exe | ||
import sys | ||
from esky import bdist_esky | ||
from distutils.core import setup | ||
|
||
setup( | ||
name = "example-app", | ||
version = "0.1", | ||
# All executables are listed in the "scripts" argument | ||
scripts = ["example.py"], | ||
options = {"py2exe": { | ||
"dll_excludes":["pywintypes26.dll"], | ||
}} | ||
) | ||
|
||
# for windows | ||
# > python setup.py bdist_esky | ||
if sys.platform in ['win32','cygwin','win64']: | ||
|
||
# Use bdist_esky instead of py2exe | ||
from distutils.core import setup | ||
|
||
setup( | ||
name = "example-app", | ||
version = "0.1", | ||
# All executables are listed in the "scripts" argument | ||
scripts = ["example.py"], | ||
options = {"bdist_esky": { | ||
"freezer_module":"py2exe", | ||
}} | ||
) | ||
|
||
# for mac | ||
# > python setup.py bdist_esky | ||
elif sys.platform == 'darwin': | ||
setup( | ||
name = "example-app", | ||
version = "0.1", | ||
scripts = ["example.py"], | ||
options = {"bdist_esky": { | ||
"freezer_module":"py2app" | ||
}} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,31 @@ | ||
|
||
import sys | ||
from esky import bdist_esky | ||
from distutils.core import setup | ||
|
||
setup( | ||
name = "example-app", | ||
version = "0.2", | ||
scripts = ["example.py"] | ||
) | ||
# for windows | ||
# > python setup.py bdist_esky | ||
if sys.platform in ['win32','cygwin','win64']: | ||
|
||
# Use bdist_esky instead of py2exe | ||
from distutils.core import setup | ||
|
||
setup( | ||
name = "example-app", | ||
version = "0.2", | ||
# All executables are listed in the "scripts" argument | ||
scripts = ["example.py"], | ||
options = {"bdist_esky": { | ||
"freezer_module":"py2exe", | ||
}} | ||
) | ||
|
||
# for mac | ||
# > python setup.py bdist_esky | ||
elif sys.platform == 'darwin': | ||
setup( | ||
name = "example-app", | ||
version = "0.2", | ||
scripts = ["example.py"], | ||
options = {"bdist_esky": { | ||
"freezer_module":"py2app" | ||
}} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,31 @@ | ||
|
||
import sys | ||
from esky import bdist_esky | ||
from distutils.core import setup | ||
|
||
setup( | ||
name = "example-app", | ||
version = "0.3", | ||
scripts = ["example.py"] | ||
) | ||
# for windows | ||
# > python setup.py bdist_esky | ||
if sys.platform in ['win32','cygwin','win64']: | ||
|
||
# Use bdist_esky instead of py2exe | ||
from distutils.core import setup | ||
|
||
setup( | ||
name = "example-app", | ||
version = "0.3", | ||
# All executables are listed in the "scripts" argument | ||
scripts = ["example.py"], | ||
options = {"bdist_esky": { | ||
"freezer_module":"py2exe", | ||
}} | ||
) | ||
|
||
# for mac | ||
# > python setup.py bdist_esky | ||
elif sys.platform == 'darwin': | ||
setup( | ||
name = "example-app", | ||
version = "0.3", | ||
scripts = ["example.py"], | ||
options = {"bdist_esky": { | ||
"freezer_module":"py2app" | ||
}} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,74 @@ | ||
|
||
import os, sys | ||
import os, sys, time | ||
from esky.bdist_esky import Executable | ||
from distutils.core import setup | ||
from glob import glob | ||
|
||
subversion = 6; | ||
|
||
if sys.platform in ['win32','cygwin','win64']: | ||
|
||
data_files = [("images", glob(r'.\images\*.*'))] | ||
|
||
# We can customuse the executable's creation by passing an instance | ||
# of Executable() instead of just the script name. | ||
example = Executable("example.py", | ||
# give our app the standard Python icon | ||
icon=os.path.join(sys.prefix,"DLLs","py.ico"), | ||
# we could make the app gui-only by setting this to True | ||
gui_only=False, | ||
# any other keyword args would be passed on to py2exe | ||
) | ||
|
||
setup( | ||
data_files=data_files, | ||
name = "example-app", | ||
version = "0.4.%d" % subversion, | ||
scripts = [example], | ||
options = {"bdist_esky":{ | ||
# forcibly include some other modules | ||
"includes": ["SocketServer","email"], | ||
# forcibly exclude some other modules | ||
"excludes": ["pydoc"], | ||
# force esky to freeze the app using py2exe | ||
"freezer_module": "py2exe", | ||
# tweak the options used by py2exe | ||
"freezer_options": {"bundle_files":3,"compressed":True}, | ||
}} | ||
) | ||
|
||
if sys.platform == 'darwin': | ||
|
||
data_files = [("images", glob(r'.\images\*.*'))] | ||
app = ['example.py'] | ||
|
||
example = Executable("example.py", | ||
#icon = os.path.join("images/box.icns"), | ||
) | ||
|
||
# We can customuse the executable's creation by passing an instance | ||
# of Executable() instead of just the script name. | ||
example = Executable("example.py", | ||
# give our app the standard Python icon | ||
icon=os.path.join(sys.prefix,"DLLs","py.ico"), | ||
# we could make the app gui-only by setting this to True | ||
gui_only=False, | ||
# any other keyword args would be passed on to py2exe | ||
) | ||
|
||
setup( | ||
name = "example-app", | ||
version = "0.4", | ||
scripts = [example], | ||
options = {"bdist_esky":{ | ||
# forcibly include some other modules | ||
"includes": ["SocketServer","email"], | ||
# forcibly exclude some other modules | ||
"excludes": ["pydoc"], | ||
# force esky to freeze the app using py2exe | ||
"freezer_module": "py2exe", | ||
# tweak the options used by py2exe | ||
"freezer_options": {"bundle_files":3,"compressed":True}, | ||
}}, | ||
) | ||
options = { | ||
"bdist_esky":{ | ||
# forcibly include some other modules | ||
"includes": [], | ||
# forcibly exclude some other modules | ||
"excludes": ["pydoc"], | ||
# force esky to freeze the app using py2exe | ||
"freezer_module": "py2app", | ||
# tweak the options used by py2exe | ||
"freezer_options": { | ||
"plist" : { | ||
#"LSUIElement" : True, | ||
#'CFBundleIdentifier': 'de.cloudmatrix.esky', | ||
#'CFBundleIconFile' : 'images/box.icns', | ||
} | ||
}, | ||
} | ||
} | ||
|
||
setup( | ||
app=app, | ||
name = "example-app", | ||
version = "0.4.%d" % subversion, | ||
data_files=data_files, | ||
options=options, | ||
scripts = [example], | ||
) |