annotate cover2musc/setup.py @ 2:4bdac9bd90cc

vsss-0.230913-0.1_PKG
author prymula <prymula76@outlook.com>
date Thu, 01 Feb 2024 17:13:37 +0100
parents dcd610585610
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
prymula <prymula76@outlook.com>
parents:
diff changeset
1 #setup.py
prymula <prymula76@outlook.com>
parents:
diff changeset
2 from distutils.sysconfig import get_python_lib
prymula <prymula76@outlook.com>
parents:
diff changeset
3 from os.path import join
prymula <prymula76@outlook.com>
parents:
diff changeset
4 from glob import glob
prymula <prymula76@outlook.com>
parents:
diff changeset
5 from cx_Freeze import setup, Executable
prymula <prymula76@outlook.com>
parents:
diff changeset
6
prymula <prymula76@outlook.com>
parents:
diff changeset
7 # Basically just copy all of the CEF distribution into the installer
prymula <prymula76@outlook.com>
parents:
diff changeset
8 # I have only tested this on windows
prymula <prymula76@outlook.com>
parents:
diff changeset
9 cefPath = join(get_python_lib(), "cefpython3")
prymula <prymula76@outlook.com>
parents:
diff changeset
10 CEF_INCLUDES = glob(join(cefPath, "*"))
prymula <prymula76@outlook.com>
parents:
diff changeset
11 #CEF_INCLUDES.remove(join(cefPath, "examples"))
prymula <prymula76@outlook.com>
parents:
diff changeset
12
prymula <prymula76@outlook.com>
parents:
diff changeset
13 setup(
prymula <prymula76@outlook.com>
parents:
diff changeset
14 name = "cover2music",
prymula <prymula76@outlook.com>
parents:
diff changeset
15 version = "20210428",
prymula <prymula76@outlook.com>
parents:
diff changeset
16 options = {
prymula <prymula76@outlook.com>
parents:
diff changeset
17 "build_exe": {
prymula <prymula76@outlook.com>
parents:
diff changeset
18 'packages': ["os","gi","gi.repository","base64","mutagen.oggvorbis","mutagen.flac","mutagen.mp3","mutagen.id3"],
prymula <prymula76@outlook.com>
parents:
diff changeset
19 'include_files': CEF_INCLUDES + ['cover2music.png'],
prymula <prymula76@outlook.com>
parents:
diff changeset
20 'include_files': CEF_INCLUDES,
prymula <prymula76@outlook.com>
parents:
diff changeset
21
prymula <prymula76@outlook.com>
parents:
diff changeset
22 'include_msvcr': True,
prymula <prymula76@outlook.com>
parents:
diff changeset
23 }},
prymula <prymula76@outlook.com>
parents:
diff changeset
24 #executables = [Executable("main.py", base="Win32GUI")]
prymula <prymula76@outlook.com>
parents:
diff changeset
25 #executables = [Executable("main.py", base = "Win32GUI"), icon = "C:/Program Files/iNTMI/assets/images/programIcon.ico")]
prymula <prymula76@outlook.com>
parents:
diff changeset
26 executables = [Executable("main.py", base = "Win32GUI"), icon = "cover2music.ico")]
prymula <prymula76@outlook.com>
parents:
diff changeset
27
prymula <prymula76@outlook.com>
parents:
diff changeset
28
prymula <prymula76@outlook.com>
parents:
diff changeset
29 )