X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=music_sampler.spec;h=5549b767f957bf77f38eb89c7dd11edb6ba8a84f;hb=e257f4d9e3b8647c3470a1450ccdcea33583419c;hp=791cd686ec7d02798c4dabe25d5c5c3b3f0d24d0;hpb=6ebe62478a49df22c55ef6a2b1200473500a7f80;p=perso%2FImmae%2FProjets%2FPython%2FMusicSampler.git diff --git a/music_sampler.spec b/music_sampler.spec index 791cd68..5549b76 100644 --- a/music_sampler.spec +++ b/music_sampler.spec @@ -1,5 +1,6 @@ # -*- mode: python -*- import os +import setuptools_scm from kivy.tools.packaging.pyinstaller_hooks import get_deps_minimal,\ hookspath, runtime_hooks @@ -22,7 +23,7 @@ excluded_and_hidden_modules['hiddenimports'] += [ 'packaging.specifiers', 'packaging.requirements' ] -commit_message = os.popen('git log -1 --format="%h %ci"').read() +commit_message = setuptools_scm.get_version() pyinstaller_file = open(".pyinstaller_commit", "w") pyinstaller_file.write(commit_message) pyinstaller_file.close()