Example #1
0
def runDisutils(bdistType):
    if bdistType == 'bdist_egg':
        print('using setuptools')
        from setuptools import setup
    else:
        from distutils.core import setup
    # store object for later examination
    setup(name = 'athenaCL', 
        version = athVersion,
        description = lang.msgAthDescShort, 
        long_description = lang.msgAthDescLong,
        author = lang.msgAuthor,
        author_email = lang.msgAuthorEmail,
        license = lang.msgLicenseName, 
        url = drawer.urlPrep(lang.msgAthURL),
        classifiers = _getClassifiers(),
        download_url = lang.msgAthDownloadTar % athVersion,
        packages = _getPackagesList(), # first is 'athenaCL'   
        package_data = {'athenaCL' : ['audio/*.aif',

                                      'demo/csound/*.xml',
                                      'demo/csound/*.txt',
                                      'demo/csound/*.py',
                                      'demo/csound/*.mp3',

                                      'demo/legacy/*.xml',
                                      'demo/legacy/*.txt',
                                      'demo/legacy/*.py',

                                      'demo/manual/*.xml',
                                      'demo/manual/*.txt',
                                      'demo/manual/*.py',

                                      'demo/midi/*.xml',
                                      'demo/midi/*.txt',
                                      'demo/midi/*.py',
                                      'demo/midi/*.mid',

                                      'demo/supercollider/*.xml',
                                      'demo/supercollider/*.txt',
                                      'demo/supercollider/*.py',

                                      'doc/*.htm',
                                      'doc/*.txt',
                                      'doc/html/*.htm',
                                      'doc/html/*.css',
                                      'doc/html/images/*.png',

                                      'test/xml/*.xml',

                                     ]}
    ) # close setup args
    
    # return absolute file path to athenaCL dir in site-packages
    sitePkgAthena = os.path.join(osTools.findSitePackages(), 'athenaCL')          
    return sitePkgAthena
Example #2
0
def helpMsg(athVersionStr, flagsRef):
    """print a help file"""
    msg = []
    msg.append('%s, %s\n' % (athVersionStr, lang.msgAthCopyright))
    msg.append('%s\n' % lang.msgLicenseShort)
    msg.append('%s\n\n%s\n\n' % (lang.msgAthDescLong, lang.msgAthUsage))
    msg.append('Options:\n')
    for key in flagsRef.keys():
        flagStr = ''
        for entry in key:
            flagStr = flagStr + '%s, ' % entry
        if flagStr[-2:] == ', ':
            flagStr = flagStr[:-2]
        msg.append('%s%s: %s\n' % (lang.TAB, flagStr, flagsRef[key]))
    msg.append('\nVisit %s for more information.\n' % 
                             drawer.urlPrep(lang.msgAthURL))
    return ''.join(msg)      
Example #3
0
def helpMsg(athVersionStr, flagsRef):
    """print a help file"""
    msg = []
    msg.append('%s, %s\n' % (athVersionStr, lang.msgAthCopyright))
    msg.append('%s\n' % lang.msgLicenseShort)
    msg.append('%s\n\n%s\n\n' % (lang.msgAthDescLong, lang.msgAthUsage))
    msg.append('Options:\n')
    for key in flagsRef.keys():
        flagStr = ''
        for entry in key:
            flagStr = flagStr + '%s, ' % entry
        if flagStr[-2:] == ', ':
            flagStr = flagStr[:-2]
        msg.append('%s%s: %s\n' % (lang.TAB, flagStr, flagsRef[key]))
    msg.append('\nVisit %s for more information.\n' %
               drawer.urlPrep(lang.msgAthURL))
    return ''.join(msg)