Changeset 79ef3b3


Ignore:
Timestamp:
Mar 13, 2017, 5:48:53 PM (7 years ago)
Author:
Martin Hermant <martin.hermant@gmail.com>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, sampler
Children:
aab682e
Parents:
dd3b1d5
Message:

hide AUBIO_GIT_SHA in release
fix py3 syntax error

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/lib/moresetuptools.py

    rdd3b1d5 r79ef3b3  
    3232                                     AUBIO_PATCH_VERSION]))
    3333
    34     AUBIO_GIT_SHA = get_git_revision_hash()
     34   
    3535    # append sha to version in alpha release
    3636    # MAJ.MIN.PATCH.{~git<sha> , ''}
    3737    if '~alpha' in AUBIO_VERSION_STATUS :
     38        AUBIO_GIT_SHA = get_git_revision_hash()
    3839        if AUBIO_GIT_SHA:
    3940            AUBIO_VERSION_STATUS = '~git'+AUBIO_GIT_SHA
     41
    4042    if AUBIO_VERSION_STATUS is not None :
    4143        verstr += AUBIO_VERSION_STATUS
  • wscript

    rdd3b1d5 r79ef3b3  
    3434                if is_exe(exe_file):
    3535                    return exe_file
    36 
    3736        return None
    38        
     37
    3938    if not which('git'):
    4039        print('no git found on this system : can\'t get sha')
     
    4948      gitcmd.append('--short')
    5049    gitcmd.append('HEAD')
    51     return subprocess.check_output(gitcmd).strip()
    52 
    53 AUBIO_GIT_SHA = get_git_revision_hash()
    54 """ append sha to version in alpha release
    55 """
    56 if '~alpha' in AUBIO_VERSION_STATUS :
     50    return str(subprocess.check_output(gitcmd).strip())
     51
     52
     53# append sha to version in alpha release
     54if AUBIO_VERSION_STATUS and '~alpha' in AUBIO_VERSION_STATUS :
     55    AUBIO_GIT_SHA = get_git_revision_hash()
    5756    if AUBIO_GIT_SHA:
    5857        AUBIO_VERSION_STATUS = '~git'+AUBIO_GIT_SHA
     
    180179    ctx.define('AUBIO_PATCH_VERSION',AUBIO_PATCH_VERSION)
    181180    ctx.define('AUBIO_VERSION_STATUS',AUBIO_VERSION_STATUS)
    182     ctx.define('AUBIO_GIT_SHA',AUBIO_GIT_SHA)
     181    # ctx.define('AUBIO_GIT_SHA',AUBIO_GIT_SHA)
    183182    if ctx.options.build_type == "debug":
    184183        ctx.define('DEBUG', 1)
Note: See TracChangeset for help on using the changeset viewer.