Changeset 8e2f36a


Ignore:
Timestamp:
Mar 23, 2017, 2:56:50 PM (7 years ago)
Author:
Paul Brossier <piem@piem.org>
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:
53fbd58
Parents:
1f00b69
Message:

setup.py: move cut and cmd inside aubio module, use entry_points to generate scripts

Files:
1 edited
2 moved

Legend:

Unmodified
Added
Removed
  • python/lib/aubio/cmd.py

    • Property mode changed from 100755 to 100644
    r1f00b69 r8e2f36a  
    314314        sys.stdout.write(fmt_out + '\n')
    315315
    316 if __name__ == '__main__':
     316def main():
    317317    parser = aubio_parser()
    318318    args = parser.parse_args()
  • python/lib/aubio/cut.py

    • Property mode changed from 100755 to 100644
    r1f00b69 r8e2f36a  
    141141    return options, args
    142142
    143 if __name__ == '__main__':
     143def main():
    144144    options, args = parse_args()
    145145
  • setup.py

    r1f00b69 r8e2f36a  
    5858    packages = ['aubio'],
    5959    package_dir = {'aubio':'python/lib/aubio'},
    60     scripts = ['python/scripts/aubiocut', 'python/scripts/aubio'],
    6160    ext_modules = [aubio_extension],
    6261    description = 'a collection of tools for music analysis',
     
    7675        'build_ext': build_ext,
    7776        },
     77    entry_points = {
     78        'console_scripts': [
     79            'aubio = aubio.cmd:main',
     80            'aubiocut = aubio.cut:main',
     81        ],
     82    },
    7883    test_suite = 'nose2.collector.collector',
    7984    extras_require = {
Note: See TracChangeset for help on using the changeset viewer.