Skip to content

Instantly share code, notes, and snippets.

@viktorvillalobos
Created September 25, 2015 01:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save viktorvillalobos/3318668d5eba599a3bae to your computer and use it in GitHub Desktop.
Save viktorvillalobos/3318668d5eba599a3bae to your computer and use it in GitHub Desktop.
setup.py cx_freeze + Python3.4 + PyQt5 + Requests
from cx_Freeze import setup, Executable
import requests.certs
build_exe_options = \
{"include_files":[
(requests.certs.where(),'cacert.pem'),
('config.ini'),
('input/'),
('output/')
]}
target = Executable(
script="main.py",
base="Win32GUI",
compress=True,
copyDependentFiles=True,
appendScriptToExe=True,
appendScriptToLibrary=False,
icon="icon.ico"
)
setup(
name = "CH Scrappint Tool",
version = "1.1",
description = "Companies Hose UK Scrapping Tool",
author = "Firesoft C.A",
options = {"build_exe": build_exe_options},
executables = [target])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment