[Git][NTPsec/ntpsec][master] Fix for generated python files not updating

Ian Bruene gitlab at mg.gitlab.com
Thu Dec 7 18:47:59 UTC 2017


Ian Bruene pushed to branch master at NTPsec / ntpsec


Commits:
fa3925d8 by Ian Bruene at 2017-12-07T12:46:35-06:00
Fix for generated python files not updating

- - - - -


1 changed file:

- pylib/wscript


Changes:

=====================================
pylib/wscript
=====================================
--- a/pylib/wscript
+++ b/pylib/wscript
@@ -23,6 +23,12 @@ def build(ctx):
     sources = srcnode.ant_glob('*.py')
     builds = [x.get_bld() for x in sources]
 
+    # Remove generated files to ensure they are properly updated
+    ctx.exec_command("rm -f %s" % target1.abspath())
+    ctx.exec_command("rm -f %s" % target2.abspath())
+    ctx.exec_command("rm -f %s" % target3.abspath())
+    ctx.exec_command("rm -f %s" % target4.abspath())
+
     # Make sure Python sees .py as well as .pyc/.pyo
     ctx(
         features="subst",



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/fa3925d82f21e6b30a8ea99a410619493da7efe2

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/fa3925d82f21e6b30a8ea99a410619493da7efe2
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20171207/04621cac/attachment.html>


More information about the vc mailing list