Merge pull request #4 from Dpeta/experimental

Fixed some issues with setup.py
This commit is contained in:
Dpeta 2020-10-04 20:19:16 +00:00 committed by GitHub
commit a6093062f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,6 +6,7 @@ import shutil
import requests
import urllib
import PyQt4
import configparser
from Queue import *
if sys.platform == "win32":
@ -14,13 +15,21 @@ else:
base = "Console"
build_exe_options = {
"includes": ["requests","urllib"] # <-- Include
"includes": ["requests","urllib"],
'excludes': ['collections.sys',
'collections._sre',
'collections._json',
'collections._locale',
'collections._struct',
'collections.array',
'collections._weakref'], # Not excluding these is the only way I could get it to build while using configparser. I don't know why though.
}
setup(
name = "PESTERCHUM-ALT-SERVERS",
name = "PESTERCHUM",
version = "3.41",
description = "P3ST3RCHUM",
options = {"build_exe": build_exe_options},
executables = [Executable("pesterchum.py",
base=base,
compress=True,
@ -40,6 +49,7 @@ shutil.copytree("themes", "build/pesterchum/themes")
shutil.copytree("smilies", "build/pesterchum/smilies")
shutil.copy("pesterchum.nsi", "build/pesterchum/")
shutil.copy("pesterchum-update.nsi", "build/pesterchum/")
shutil.copy("server.ini", "build/pesterchum/")
os.mkdir("build/pesterchum/profiles")
os.mkdir("build/pesterchum/logs")