Closes #5.
Joseph Weston authored on 13/06/2018 18:42:23... | ... |
@@ -6,7 +6,7 @@ import os |
6 | 6 |
import subprocess |
7 | 7 |
import sys |
8 | 8 |
|
9 |
-from distutils.command.build import build as build_orig |
|
9 |
+from distutils.command.build_py import build_py as build_py_orig |
|
10 | 10 |
from setuptools.command.sdist import sdist as sdist_orig |
11 | 11 |
|
12 | 12 |
Version = namedtuple('Version', ('release', 'dev', 'labels')) |
... | ... |
@@ -149,7 +149,7 @@ def _write_version(fname): |
149 | 149 |
"version = '{}'\n".format(__version__)) |
150 | 150 |
|
151 | 151 |
|
152 |
-class _build(build_orig): |
|
152 |
+class _build_py(build_py_orig): |
|
153 | 153 |
def run(self): |
154 | 154 |
super().run() |
155 | 155 |
_write_version(os.path.join(self.build_lib, package_name, |
... | ... |
@@ -163,4 +163,4 @@ class _sdist(sdist_orig): |
163 | 163 |
STATIC_VERSION_FILE)) |
164 | 164 |
|
165 | 165 |
|
166 |
-cmdclass = dict(sdist=_sdist, build=_build) |
|
166 |
+cmdclass = dict(sdist=_sdist, build_py=_build_py) |