forked from randovania/randovania
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
31 lines (23 loc) · 630 Bytes
/
setup.py
File metadata and controls
31 lines (23 loc) · 630 Bytes
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
from __future__ import annotations
from setuptools import setup
from setuptools.command.build_py import build_py
from wheel.bdist_wheel import bdist_wheel
try:
from pyqt_distutils.build_ui import build_ui
except ModuleNotFoundError:
build_ui = None
class BuildPyCommand(build_py):
def run(self):
self.run_command("build_ui")
super().run()
class BDistWheelCommand(bdist_wheel):
def run(self):
self.run_command("build_ui")
super().run()
setup(
cmdclass={
"build_ui": build_ui,
"build_py": BuildPyCommand,
"bdist_wheel": BDistWheelCommand,
},
)