File: //opt/gsutil/__pycache__/gsutil.cpython-39.pyc
a
�[h� � @ s4 d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlZddlZddlZej Z
e
jdkspe
jdk spe
jd kr�e�
d
�e
je
j�� ej jdkr�dZnd
Zdd� Zdd� Zej�ej�ej�e���Zes�ed� ej�ed�Zej�ed�ZdZejdedd� ejdedd� ddddddd d!d"d#d$d%d&d'efd(d)d*d+d,d-d.d/d0d1d2gZej�ed�ZeD ]L\ZZ ej�!ej�ee���s�ed3eef � ej�"dej�eee �� �q`ej�ed4e�Z#ej�ed5�Z$zddl%Z%W n> e&�y d6e'ej(��)� v �r e$ne#Z*ej�"de*� Y n0 d7d8� Z+e,d9k�r0e+� dS ):zGWrapper module for running gslib.__main__.main() from the command line.� )�absolute_import)�print_function)�division)�unicode_literalsN� � �
a� Error: gsutil requires Python version 3.9-3.13, but a different version is installed.
You are currently running Python {}.{}
Follow the steps below to resolve this issue:
1. Switch to Python 3.9-3.13 using your Python version manager or install an appropriate version.
2. If you are unsure how to manage Python versions, visit [https://cloud.google.com/storage/docs/gsutil_install#specifications] for detailed instructions.� Zpython2Zpython3c C s t j�d| � t �d� d S )Nz%s
� )�sys�stderr�write�exit)�message� r �/opt/gsutil/gsutil.py�
OutputAndExit. s r c C s* dt jvrdS ddl} | �t jd � dS )a� Reloads the google module to prefer our third_party copy.
When Python is not invoked with the -S option, it may preload the google module via .pth file.
This leads to the "site_packages" version being preferred over gsutil "third_party" version.
To force the "third_party" version, insert the path at the start of sys.path and reload the google module.
This is a hacky. Reloading is required for the rare case that users have
google-auth already installed in their Python environment.
Note that this reload may cause an issue for Python 3.5.3 and lower
because of the weakref issue, fixed in Python 3.5.4:
https://github.com/python/cpython/commit/9cd7e17640a49635d1c1f8c2989578a8fc2c1de6.
ZgoogleNr )r �modules� importlibZreload)r r r r �_fix_google_module3 s
r zYUnable to determine where gsutil is installed. Sorry, cannot run correctly without this.
Zthird_partyZvendoredF�ignorez%.* httplib2 was already imported from)Zcategoryr z).* oauth2client was already imported from)Zargcomplete� )Zmockr )Zfuncsigsr )zgoogle-reauth-pythonr )Zpyu2fr )Zpyasn1r )zpyasn1-modulesr )Zrsar )Zapitoolsr )zgcs-oauth2-boto-pluginr )Z fastenersr )� monotonicr )Z pyparsingr Zhttplib2)zretry-decoratorr )Zsixr )Z
cachetools�src)Zurllib3r )Zcharset_normalizerr )Zchardetr )Zcertifir )Zidnar )Zrequestsr )zgoogle-auth-library-pythonr )z#google-auth-library-python-httplib2r z�There is no %s library under the gsutil third-party directory (%s).
The gsutil command cannot work properly when installed this way.
Please re-install gsutil per the installation instructions.�crcmodZ
crcmod_osx�darwinc C s"