123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- import os
- from distutils.core import setup
- from distutils.command.install_data import install_data
- from mmgen.globalvars import g
- class my_install_data(install_data):
- def run(self):
- sdir = os.path.join('data_files','audio')
- for f in [e for e in os.listdir(sdir) if e[-4:] == '.wav']:
- os.chmod(os.path.join(sdir,f),0o644)
- install_data.run(self)
- setup(
- name = 'mmgen-node-tools',
- description = 'Optional tools for the MMGen wallet system',
- version = g.version,
- author = g.author,
- author_email = g.email,
- url = g.proj_url,
- license = 'GNU GPL v3',
- platforms = 'Linux, MS Windows, Raspberry Pi',
- keywords = g.keywords,
- packages = ['mmgen.node_tools'],
- scripts = [
- 'mmnode-blocks-info',
- 'mmnode-feeview',
- 'mmnode-halving-calculator',
- 'mmnode-netrate',
- 'mmnode-peerblocks',
- ],
- data_files = [('share/mmgen/node_tools/audio', [
- 'data_files/audio/ringtone.wav',
- 'data_files/audio/Positive.wav',
- 'data_files/audio/Rhodes.wav',
- 'data_files/audio/Counterpoint.wav'
- ])
- ],
- cmdclass = { 'install_data': my_install_data },
- )
|