-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
108 lines (102 loc) · 2.92 KB
/
setup.py
File metadata and controls
108 lines (102 loc) · 2.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
#~
#~ try:
#~ from setuptools import setup
#~ except ImportError:
#~ from distutils.core import setuptools
#~
#~ config = {
#~ 'name': 'lightapp',
#~ 'version': '0.1.0',
#~ 'author': 'Raphi',
#~ 'author_email': 'r.gaziano@gmail.com',
#~ 'packages': ['lightapp', 'lightapp.tests'],
#~ 'scripts': [], # any script in the bin directory
#~ 'url': None,
#~ 'download_url': None,
#~ 'license': 'LICENSE.txt',
#~ 'description': 'TODO',
#~ 'long_description': open('README.txt').read(),
#~ 'install_requires': [
#~ ]
#~ }
#~
#~ setup(**config)
# -*- coding: utf-8 -*-
import sys
from cx_Freeze import setup, Executable
base = None
if sys.platform == "win32":
base = "Win32GUI"
setup(
name = "lightapp",
version = "0.1",
description = "blaaa",
options = {"build_exe": {"includes": ["sip"],
"excludes": ["tcl", "tk"]} },
# Active la prise en compte du fichier MANIFEST.in
include_package_data=True,
executables = [Executable("main.py",
targetName='LightApp.exe',
copyDependentFiles=True,
base = base)])
#~ import sys, os
#~ from cx_Freeze import setup, Executable
#~
#~ #############################################################################
#~ # préparation des options
#~
#~ # chemins de recherche des modules
#~ path = sys.path + ["lightapp", ]
#~
#~ # options d'inclusion/exclusion des modules
#~ includes = []
#~ excludes = []
#~ packages = []
#~
#~ # copier les fichiers et/ou répertoires et leur contenu
#~ includefiles = [("")]
#~ if sys.platform == "linux2":
#~ includefiles += [(r"")]
#~ elif sys.platform == "win32":
#~ includefiles += [(r"")]
#~ else:
#~ pass
#~
#~ # inclusion éventuelle de bibliothèques supplémentaires
#~ binpathincludes = []
#~ if sys.platform == "linux2":
#~ # pour que les bibliothèques de /usr/lib soient copiées aussi
#~ binpathincludes += ["/usr/lib"]
#~
#~ # construction du dictionnaire des options
#~ options = {"path": path,
#~ "includes": includes,
#~ "excludes": excludes,
#~ "packages": packages,
#~ "include_files": includefiles,
#~ "bin_path_includes": binpathincludes
#~ }
#~
#~ #############################################################################
#~ # préparation des cibles
#~ base = None
#~ if sys.platform == "win32":
#~ base = "Win32GUI"
#~
#~ cible_1 = Executable(
#~ script = "main.py",
#~ base = base,
#~ compress = True,
#~ icon = None,
#~ )
#~
#~ #############################################################################
#~ # création du setup
#~ setup(
#~ name = "lightapp",
#~ version = "1",
#~ description = "appli console lumière",
#~ author = "Raphi",
#~ options = {"build_exe": options},
#~ executables = [cible_1]
#~ )