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 4ac5f11 commit bf1a70aCopy full SHA for bf1a70a
setup.py
@@ -11,9 +11,11 @@
11
12
try:
13
from setuptools import setup
14
+ from setuptools.command.install import install as _install
15
using_setuptools = True
16
except ImportError:
17
from distutils.core import setup
18
+ from distutils.command.install import install as _install
19
using_setuptools = False
20
21
@@ -36,8 +38,14 @@
36
38
37
39
using_sphinx = False
40
41
+class install(_install):
42
+ """Force install to run build target."""
43
-cmdclass = dict(build_py=build_py, build=build)
44
+ def run(self):
45
+ self.run_command('build')
46
+ _install.run(self)
47
+
48
+cmdclass = dict(build_py=build_py, build=build, install=install)
49
translations_dir = os.path.join(package_dir, 'translations')
50
51
# localization options
0 commit comments