
    %`i                        d Z ddlZddlZej                            e          Zeej        v r4ej                            e           ej                            e           ddl	Z	ddl
Z
ddlZddlZddlZd1dZedk    r e	j        e	j        d          Ze                    dd	d
d           e                    ddddd           e                    ddddd           e                    ddddd           e                                Zej        r"ej        r ed            ej        d           ej        s ed           i ddddddddd dd!dd"dd#dd$dd%dd&dd'dd(dd)dd*dd+dd,dddddddd-Ze                                D ]$\  ZZ eeej        ej        ej        e.           %ej        (ej        D ] Z eeej        ej        ej        /           ! ed0           dS dS )2zThis script allows you to develop Ray Python code without needing to compile
Ray.
See https://docs.ray.io/en/master/development.html#building-ray-python-only    NFc                 N   |r| |v rt          d|             d S || |vrt          d|  d           d S t          j                            t          j                            t
          j        d|                      }|d|  }t          j                            t          j                            t          |                    }t          j                            |          s1t          j                            |          st          | d           t          j        	                    |          s
J |            |st          j        d| d| d          sd S t          j        d	k    r	 t          j        |           n/# t          $ r Y n#t           $ r t          j        |           Y nw xY wt          j                            |          rt%          j        d
d||gd           d S t          j                            |          rt%          j        d
d||gd           d S t          | d           d S g }t          j        t          j                            |          t          j                  st          d| d           dg}t          d| d|            d}| dk    rjt          j                            |d          }	t          j        	                    |          st          j        |           t%          j        d|	|g           t          j        	                    |          r5| d}
t          d| d|
            t%          j        |dd||
gz              t%          j        |dd|gz              t%          j        |dd ||gz              | dk    rxt          j                            |d          }t          j                            |d          }t          j        	                    |          st%          j        d||g           d S d S d S )!Nz Skip creating symbolic link for z (not in allow list)z../z$ does not exist. Continuing to link.zThis will replace:
  z
with a symlink to:
  T)defaultntmklinkz/J)shellz/Hz, is neither directory nor file. Link failed.z#You don't have write permission to z, using sudo:sudozCreating symbolic link from 
 z to 
 z/tmp/ray/_serve/serve	generatedmvz.bakzCreating backup of z to cpz-rrmz-rfln-s)printospathabspathjoinray__file__isdirisfileexistsclickconfirmnameshutilrmtreeFileNotFoundErrorOSErrorremove
subprocess
check_callaccessdirnameW_OKmakedirs)packageforce	skip_list
allow_list
local_pathpackage_home
local_homer   serve_temp_dirgenerated_folder
backup_dirtmp_generated_folderpackage_generated_folders                a/home/jaya/work/projects/VOICE-AGENT/VIET/agent-env/lib/python3.11/site-packages/ray/setup-dev.pydo_linkr5      s    W	)):::;;;'";";NNNNOOO7??27<<oGoo#N#NOOL$7__
h
!C!CDDJ 7==&& Erw~~l/K/K ECCCDDD7>>*%%11z11% WWW:WW    	 
w$	$M,''''  	 	 	D 	$ 	$ 	$Il#####	$ 7==$$ 		O!4z:$      W^^J'' 	O!4z:$      ZMMMNNNNN y66@@ 	V<VVVWWW8DQ
QQ<QQRRR ,g!w||L+FF7>>.11 ,N+++!4)9>"JKKK 7>>,'' 	Q(...JFFF*FFGGG!$$lJ)O"OPPPddE<%@@AAAddD*l%KKLLL g#%7<<#L#L ')w||L+'N'N$7>>":;; %/1IJ    	  s   3F 
F4F43F4__main__z
Setup dev.)formatter_classdescriptionz--yesz-y
store_truezDon't ask for confirmation.)actionhelpz--skipr   *z;List of folders to skip linking to facilitate workspace dev)nargsr;   requiredz--allowz-az3List of folders to link (only these will be linked)z--extrasz-ez9List of extra folders to link to facilitate workspace devz2Error: --skip and --allow cannot be used together.   zANOTE: Use '-y' to override all python files without confirmation.llmz	serve/llmzdata/llm.pyrllibz../../../rllibairtunetrain
autoscalercloudpickledatascriptsinternaltestsexperimentalutilworkflowr	   )dagwidgetszcluster_utils.py_private_common	dashboard)r)   r*   r+   r,   )r)   r*   r+   a  Created links.

If you run into issues initializing Ray, please ensure that your local repo and the installed Ray are in sync (pip install -U the latest wheels at https://docs.ray.io/en/master/installation.html, and ensure you are up-to-date on the master branch on git).

Note that you may need to delete the package symlinks when pip installing new Ray versions to prevent pip from overwriting files in your git repo.)FNNN) __doc__r   sysr   r%   r   this_dirr!   appendargparser   r"   r   r   r5   __name__ArgumentParserRawDescriptionHelpFormatterparseradd_argument
parse_argsargsskipallowr   exityespackages_to_linkitemsr(   r,   extras     r4   <module>rh      s  O O 
			 




 7??8$$sxHOOHHOOH        



O O O Od z$X$ <,  F l1N     J     B     H     Dy TZ BCCC8 SQRRRtT 	t 	!	
 	t 	 	 	d 	t 	 	4 	D 	 	 	  	D!" 	#$  /  6  05577 
 
(iz!	
 	
 	
 	
 	
 {{ 	Y 	YGGG48tyTZXXXXX	E		 	 	 	 	] rg   