Skip to content

Commit

Permalink
Better fix for setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
portablejim committed Sep 23, 2017
1 parent 1daf2b0 commit 766dc3c
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,30 @@
os.environ['TCL_LIBRARY'] = os.path.join(PYTHON_INSTALL_DIR, 'tcl', 'tcl8.6')
os.environ['TK_LIBRARY'] = os.path.join(PYTHON_INSTALL_DIR, 'tcl', 'tk8.6')

file_includes = []

base = None
targetName = "cursePackDownloader"
if sys.platform == "win32":
base = "Win32GUI"
targetName = "cursePackDownloader.exe"
file_includes = [
os.path.join(PYTHON_INSTALL_DIR, 'DLLs', 'tk86t.dll'),
os.path.join(PYTHON_INSTALL_DIR, 'DLLs', 'tcl86t.dll')
]


options = {
'build_exe': {
'include_files':[
os.path.join(PYTHON_INSTALL_DIR, 'DLLs', 'tk86t.dll'),
os.path.join(PYTHON_INSTALL_DIR, 'DLLs', 'tcl86t.dll'),
],
},
setup_options = {
"build_exe": {
'include_files': file_includes,
"packages": ["appdirs","idna","chardet","urllib3","certifi","requests"],
}
}

setup(
name="cursePackDownloader",
version="0.3",
description="Download extra mods from Curse-hosted Minecraft modpacks",
options = options,
executables=[Executable("downloader.py", targetName=targetName)],
options = setup_options,
executables=[Executable("downloader.py", targetName=targetName, base=base)]
)

0 comments on commit 766dc3c

Please sign in to comment.