CoolFace
Apppublic

Aluode/PerceptionLabPortable

sourceHugging Faceupdated 9mo agoView on Hugging Face
0likes
utils.py30 linesDownload Raw Back to llvmlite
1import os
2import sys
3
4
5# This module must be importable without loading the binding, to avoid
6# bootstrapping issues in setup.py.
7
8def get_library_name():
9    """
10    Return the name of the llvmlite shared library file.
11    """
12    if os.name == 'posix':
13        if sys.platform == 'darwin':
14            return 'libllvmlite.dylib'
15        else:
16            return 'libllvmlite.so'
17    else:
18        assert os.name == 'nt'
19        return 'llvmlite.dll'
20
21
22def get_library_files():
23    """
24    Return the names of shared library files needed for this platform.
25    """
26    files = [get_library_name()]
27    if os.name == 'nt':
28        files.extend(['msvcr120.dll', 'msvcp120.dll'])
29    return files
30 
Aluode/PerceptionLabPortable · CoolFace