Example #1
0
def build_pyo(project_dirs):
    pyexe = util_cplat.python_executable()
    for dir_ in project_dirs:
        #command_args = [pyexe, '-O', '-m', 'compileall', dir_ + '\*.py']
        command_args = [pyexe, '-O', '-m', 'compileall', dir_]
        #command = ' '.join(command_args)
        #os.system(command)
        util_cplat.shell(command_args)
Example #2
0
def build_pyo(project_dirs):
    pyexe = util_cplat.python_executable()
    for dir_ in project_dirs:
        #command_args = [pyexe, '-O', '-m', 'compileall', dir_ + '\*.py']
        command_args = [pyexe, '-O', '-m', 'compileall', dir_]
        #command = ' '.join(command_args)
        #os.system(command)
        util_cplat.shell(command_args)
Example #3
0
def build_command():
    """ Build command run by utool.util_setup """
    if util_cplat.WIN32:
        fftw_win32_url = 'ftp://ftp.fftw.org/pub/fftw/fftw-3.3.4-dll32.zip'
        #fftw_win64_url = 'ftp://ftp.fftw.org/pub/fftw/fftw-3.3.4-dll64.zip'
        # Ensure you have everything to build on windows
        setup_dir = utool.dirname(__file__)
        fftw_dir = utool.grab_zipped_url(fftw_win32_url, download_dir=setup_dir)
        print(fftw_dir)
        util_cplat.shell('mingw_build.bat')
    else:
        util_cplat.shell('./unix_build.sh')
Example #4
0
def build_command():
    """ Build command run by utool.util_setup """
    if util_cplat.WIN32:
        util_cplat.shell('mingw_build.bat')
    else:
        util_cplat.shell('./unix_build.sh')
Example #5
0
def build_command():
    """ Build command run by utool.util_setup """
    if util_cplat.WIN32:
        util_cplat.shell('mingw_build.bat')
    else:
        util_cplat.shell('./unix_build.sh')
Example #6
0
def build_command():
    """ Build command run by utool.util_setup """
    if util_cplat.WIN32:
        raise NotImplementedError('Canno build this module on Windows, because it\'s the worst')
    else:
        util_cplat.shell('./unix_build.sh')