We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 925b733 commit ded2d7fCopy full SHA for ded2d7f
setup.py
@@ -6,7 +6,7 @@
6
import subprocess
7
8
from setuptools import setup
9
-from setuptools.command.build import build
+from setuptools.command.build import build as _orig_build
10
11
try:
12
from babel.messages import frontend as babel
@@ -122,6 +122,11 @@ def git_describe_to_python_version(version):
122
vf.write(f'__version__ = "{version}"\n')
123
124
125
+class build(_orig_build):
126
+ # Avoid patching the original class' attribute (more robust customisation)
127
+ sub_commands = _orig_build.sub_commands[:]
128
+
129
130
cmdclass = {"build": build}
131
132
translations_dir = os.path.join("bpython", "translations")
0 commit comments