wscript 797 B

123456789101112131415161718192021
  1. #! /usr/bin/env python
  2. # encoding: utf-8
  3. def options(opt):
  4. opt.load('python pyqt5')
  5. def configure(conf):
  6. conf.load('python pyqt5')
  7. conf.check_python_version(minver=(2, 7, 0))
  8. def build(bld):
  9. bld(name='mod1', features='py', source=bld.path.ant_glob('mod1/src/**/*.py'), install_from='mod1/src')
  10. bld(name='mod2', features='py', source=bld.path.ant_glob('mod2/src/**/*.py'), install_from='mod2/src')
  11. bld(name='mod3', features='py', source=bld.path.ant_glob('mod3/src/**/*.py'), install_from='mod3/src')
  12. bld(name='withqt5', features='py pyqt5', source=bld.path.ant_glob('withqt5/src/**/*'), install_from='withqt5/src')
  13. # Example program with module dependencies
  14. bld(name='prg', features='py', source=bld.path.ant_glob('prg/src/**/*.py'), install_from='prg/src', use='mod1 mod2 mod3')