[yt-svn] commit/yt: jzuhone: Merged in xarthisius/yt (pull request #2445)

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Mon Dec 5 10:51:13 PST 2016


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/f44f95b80a14/
Changeset:   f44f95b80a14
Branch:      yt
User:        jzuhone
Date:        2016-12-05 18:50:48+00:00
Summary:     Merged in xarthisius/yt (pull request #2445)

Register '__hg_version__.py' as an output of build command. Closes #1296
Affected #:  1 file

diff -r d3f3ea8fe4906be938d683acbfbf60ed5a911d4a -r f44f95b80a147984d9bbce2c2c687178c13145d0 setup.py
--- a/setup.py
+++ b/setup.py
@@ -298,6 +298,15 @@
                 fobj.write("hg_version = '%s'\n" % changeset)
         _build_py.run(self)
 
+    def get_outputs(self):
+        # http://bitbucket.org/yt_analysis/yt/issues/1296
+        outputs = _build_py.get_outputs(self)
+        outputs.append(
+            os.path.join(self.build_lib, 'yt', '__hg_version__.py')
+        )
+        return outputs
+
+
 class build_ext(_build_ext):
     # subclass setuptools extension builder to avoid importing cython and numpy
     # at top level in setup.py. See http://stackoverflow.com/a/21621689/1382869

Repository URL: https://bitbucket.org/yt_analysis/yt/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.



More information about the yt-svn mailing list