[yt-svn] commit/yt: 2 new changesets

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


2 new commits in yt:

https://bitbucket.org/yt_analysis/yt/commits/685d42763771/
Changeset:   685d42763771
Branch:      yt
User:        xarthisius
Date:        2016-11-23 00:12:56+00:00
Summary:     Register '__hg_version__.py' as an output of build command. Fixes #1296
Affected #:  1 file

diff -r 5499b32cce889b3306cf6718b80bc55fa5ce9315 -r 685d427637719705533e88b77103c382e7791611 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


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