File tree Expand file tree Collapse file tree 4 files changed +88
-12
lines changed
Expand file tree Collapse file tree 4 files changed +88
-12
lines changed Original file line number Diff line number Diff line change 1919
2020__version__ = '1.11.82'
2121
22-
23- #
24- # Account for LC_CTYPE of UTF-8
25- # For more information see:
26- # * http://bugs.python.org/issue18378
27- # * #945
28- #
29- if os .environ .get ('LC_CTYPE' , '' ) == 'UTF-8' :
30- os .environ ['LC_CTYPE' ] = 'en_US.UTF-8'
31-
3222#
3323# Get our data path to be added to botocore's search path
3424#
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env python
2+ # Copyright 2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
4+ # Licensed under the Apache License, Version 2.0 (the "License"). You
5+ # may not use this file except in compliance with the License. A copy of
6+ # the License is located at
7+
8+ # http://aws.amazon.com/apache2.0/
9+
10+ # or in the "license" file accompanying this file. This file is
11+ # distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
12+ # ANY KIND, either express or implied. See the License for the specific
13+ # language governing permissions and limitations under the License.
14+ import sys
15+ import os
16+
17+ if os .environ .get ('LC_CTYPE' , '' ) == 'UTF-8' :
18+ os .environ ['LC_CTYPE' ] = 'en_US.UTF-8'
19+ import awscli .clidriver
20+
21+
22+ def main ():
23+ return awscli .clidriver .main ()
24+
25+
26+ if __name__ == '__main__' :
27+ sys .exit (main ())
Original file line number Diff line number Diff line change 1+ @ echo OFF
2+ REM ="""
3+ setlocal
4+ set PythonExe = " "
5+ set PythonExeFlags =
6+
7+ for %%i in (cmd bat exe) do (
8+ for %%j in (python.%%i ) do (
9+ call :SetPythonExe " %%~$PATH:j "
10+ )
11+ )
12+ for /f " tokens=2 delims==" %%i in ('assoc .py') do (
13+ for /f " tokens=2 delims==" %%j in ('ftype %%i ') do (
14+ for /f " tokens=1" %%k in (" %%j " ) do (
15+ call :SetPythonExe %%k
16+ )
17+ )
18+ )
19+ %PythonExe% -x %PythonExeFlags% " %~f0 " %*
20+ exit /B %ERRORLEVEL%
21+ goto :EOF
22+
23+ :SetPythonExe
24+ if not [" %~1 " ]== [" " ] (
25+ if [%PythonExe% ]== [" " ] (
26+ set PythonExe = " %~1 "
27+ )
28+ )
29+ goto :EOF
30+ " " "
31+
32+ # ================================================== =
33+ # Python script starts here
34+ # ================================================== =
35+
36+ #!/usr/bin/env python
37+ # Copyright 2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.
38+
39+ # Licensed under the Apache License, Version 2.0 (the " License" ). You
40+ # may not use this file except in compliance with the License. A copy of
41+ # the License is located at
42+
43+ # http://aws.amazon.com/apache2.0/
44+
45+ # or in the " license" file accompanying this file. This file is
46+ # distributed on an " AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
47+ # ANY KIND, either express or implied. See the License for the specific
48+ # language governing permissions and limitations under the License.
49+
50+ import awscli.clidriver
51+ import sys
52+
53+
54+ def main():
55+ return awscli.clidriver.main()
56+
57+
58+ if __name__ == '__main__':
59+ sys.exit(main())
Original file line number Diff line number Diff line change @@ -44,13 +44,13 @@ def find_version(*file_paths):
4444 long_description = open ('README.rst' ).read (),
4545 author = 'Amazon Web Services' ,
4646 url = 'http://aws.amazon.com/cli/' ,
47- scripts = ['bin/aws_completer' , 'bin/aws_zsh_completer.sh' ,
47+ scripts = ['bin/aws' , 'bin/aws.cmd' ,
48+ 'bin/aws_completer' , 'bin/aws_zsh_completer.sh' ,
4849 'bin/aws_bash_completer' ],
4950 packages = find_packages (exclude = ['tests*' ]),
5051 package_data = {'awscli' : ['data/*.json' , 'examples/*/*.rst' ,
5152 'examples/*/*/*.rst' , 'topics/*.rst' ,
5253 'topics/*.json' ]},
53- entry_points = {"console_scripts" : ["aws = awscli.clidriver:main" ]},
5454 install_requires = requires ,
5555 extras_require = {
5656 ':python_version=="2.6"' : [
You can’t perform that action at this time.
0 commit comments