File: //proc/1233/cwd/usr/share/dh-python/dhpython/__pycache__/interpreter.cpython-310.pyc
o
O�Ib�R � @ s� d dl Z d dlZd dlZd dlmZmZmZ d dlmZm Z m
Z
e�dej�Z
e�dej�Ze �d�ZG dd� d�Zd d lmZ d d
lmZmZ dS )� N)�exists�join�split)�INTERPRETER_DIR_TPLS�
PUBLIC_DIR_RE�
OLD_SITE_DIRSz�
(?:\#!\s*){0,1} # shebang prefix
(?P<path>
.*?/bin/.*?)?
(?P<name>
python|pypy)
(?P<version>
\d[\.\d]*)?
(?P<debug>
-dbg)?
(?P<options>.*)
an
(?P<name>.*?)
(?:\.
(?P<stableabi>abi\d+)
|(?:\.
(?P<soabi>
(?P<impl>cpython|pypy)
-
(?P<ver>\d{2,})
(?P<flags>[a-z]*)
)?
(?:
(?:(?<!\.)-)? # minus sign only if soabi is defined
(?P<multiarch>[^/]*?)
)?
))?
(?P<debug>_d)?
\.so$�dhpythonc @ s@ e Zd ZdZdZdZdZdZdZdZ i Z
d?dd �Zd
d� Zdd
� Z
dd� Zd@dd�ZdAdd�Zedd� �Zedd� �Zedd� �Zedd� �ZdBdd�ZdBdd�Zd d!� Zd"d#� ZdAd$d%�ZdAd&d'�ZdAd(d)�ZdAd*d+�ZdAd,d-�Z dAd.d/�Z!ed0d1� �Z"ed2d3� �Z#ed4d5� �Z$dAd6d7�Z%d8d9� Z&dAd:d;�Z'dCd=d>�Z(dS )D�Interpretera�
:attr path: /usr/bin/ in most cases
:attr name: pypy or python (even for python3 and python-dbg) or empty string
:attr version: interpreter's version
:attr debug: -dbg version of the interpreter
:attr impl: implementation (cpytho2, cpython3 or pypy)
:attr options: options parsed from shebang
:type path: str
:type name: str
:type version: Version or None
:type debug: bool
:type impl: str
:type options: tuple
z /usr/bin/�pythonNF� � c C s� t � }|d= |d= t|t�r#|�� D ]} || d u r!t|| �|| <