Server IP : 192.158.238.246 / Your IP : 3.144.235.50 Web Server : LiteSpeed System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64 User : jenniferflocom ( 1321) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python311/lib64/python3.11/venv/__pycache__/ |
Upload File : |
� �=Og�f � �: � d Z ddlZddlZddlZddlZddlZddlZddlZddlZdZ ej e� � Z G d� d� � Z d d�Zdd�Zed k rId Z e� � dZn'# e$ rZ edez ej �� � Y dZ[ndZ[ww xY w ej e� � dS dS )z� Virtual environment (venv) package for Python. Based on PEP 405. Copyright (C) 2011-2014 Vinay Sajip. Licensed to the PSF under a contributor agreement. � N)�pip� setuptoolsc � � e Zd ZdZ dd�Zd� Zd� Zd� Zd� Zd � Z e j d k rdd�Zndd�Zd � Z d� Zd� Zd� Zd� Zd� Zd� Zd� ZdS )� EnvBuildera� This class exists to allow virtual environment creation to be customized. The constructor parameters determine the builder's behaviour when called upon to create a virtual environment. By default, the builder makes the system (global) site-packages dir *un*available to the created environment. If invoked using the Python -m option, the default is to use copying on Windows platforms but symlinks elsewhere. If instantiated some other way, the default is to *not* use symlinks. :param system_site_packages: If True, the system (global) site-packages dir is available to created environments. :param clear: If True, delete the contents of the environment directory if it already exists, before environment creation. :param symlinks: If True, attempt to symlink rather than copy files into virtual environment. :param upgrade: If True, upgrade an existing virtual environment. :param with_pip: If True, ensure pip is installed in the virtual environment :param prompt: Alternative terminal prefix for the environment. :param upgrade_deps: Update the base venv modules to the latest on PyPI FNc �� � || _ || _ || _ || _ || _ || _ |dk r0t j � t j � � � � }|| _ || _ d S )N�.)�system_site_packages�clear�symlinks�upgrade�with_pip�orig_prompt�os�path�basename�getcwd�prompt�upgrade_deps)�selfr r r r r r r s �4/opt/alt/python311/lib64/python3.11/venv/__init__.py�__init__zEnvBuilder.__init__/ si � � %9��!��� � �� ���� �� �!����S�=�=��W�%�%�b�i�k�k�2�2�F����(����� c �� � t j � |� � }| � |� � }| j }d| _ | � |� � | � |� � | j r| � |� � | j s*| � |� � | � |� � |rd| _ | � |� � | j r| � |� � dS dS )z� Create a virtual environment in a directory. :param env_dir: The target directory to create an environment in. FTN)r r �abspath�ensure_directoriesr �create_configuration�setup_pythonr � _setup_pipr � setup_scripts� post_setupr �upgrade_dependencies)r �env_dir�context�true_system_site_packagess r �createzEnvBuilder.create= s � � �'�/�/�'�*�*���)�)�'�2�2�� %)�$=�!�$)��!��!�!�'�*�*�*����'�"�"�"��=� %��O�O�G�$�$�$��|� %����w�'�'�'��O�O�G�$�$�$�$� /� )-�D�%��%�%�g�.�.�.��� /��%�%�g�.�.�.�.�.� /� /r c � � t j |� � D ]�}t j � ||� � }t j � |� � st j � |� � rt j |� � �ut j � |� � rt j |� � ��d S �N) r �listdirr �join�islink�isfile�remove�isdir�shutil�rmtree)r r �fns r �clear_directoryzEnvBuilder.clear_directoryY s� � ��*�T�"�"� "� "�B�����d�B�'�'�B��w�~�~�b�!�!� "�R�W�^�^�B�%7�%7� "�� �"� � � � �����r�"�"� "�� �b�!�!�!�� "� "r c �>