Пример #1
0
def compile(args):
    comp = StandaloneCompiler(sys.path)
    kwargs = dict(version_check=args['--version-check'],
                  convert_case=args['--convert-case'],
                  text_type=args['--text-type'])
    options = Options.from_dict(kwargs)
    comp.compile(filename=args['FILE'], pyx=args['--pyx'], options=options)
Пример #2
0
def compile(args):
    comp = StandaloneCompiler(sys.path)
    comp.compile(filename=args['FILE'],
                 convert_case=args['--convert-case'],
                 pyx=args['--pyx'],
                 version_check=args['--version-check'])
Пример #3
0
 def compile(self, filename, src):
     infile = self.write(filename, src.strip())
     comp = StandaloneCompiler(sys.path)
     comp.compile(infile, pyx=self.pyx, options=None)
Пример #4
0
def compile(args, options):
    comp = StandaloneCompiler(sys.path)
    comp.compile(filename=args['FILE'], pyx=args['--pyx'], options=options)
Пример #5
0
def compile(args):
    srcfile = args['FILE']
    comp = StandaloneCompiler(sys.path)
    comp.compile(args['FILE'],
                 convert_case=args['--convert-case'],
                 pyx=args['--pyx'])