@@ -17,9 +17,8 @@ msgstr ""
17
17
"Generated-By : Babel 2.17.0\n "
18
18
19
19
#: ../../library/zipapp.rst:2
20
- #, fuzzy
21
20
msgid ":mod:`!zipapp` --- Manage executable Python zip archives"
22
- msgstr ":mod:`zipapp` --- 실행 가능한 파이썬 zip 아카이브 관리"
21
+ msgstr ":mod:`! zipapp` --- 실행 가능한 파이썬 zip 아카이브 관리"
23
22
24
23
#: ../../library/zipapp.rst:9
25
24
msgid "**Source code:** :source:`Lib/zipapp.py`"
@@ -57,6 +56,9 @@ msgid ""
57
56
"$ python myapp.pyz\n"
58
57
"<output from myapp>"
59
58
msgstr ""
59
+ "$ python -m zipapp myapp -m \" myapp:main\" \n"
60
+ "$ python myapp.pyz\n"
61
+ "<output from myapp>"
60
62
61
63
#: ../../library/zipapp.rst:40
62
64
msgid "Command-Line Interface"
@@ -70,7 +72,7 @@ msgstr "명령 줄에서 프로그램으로 호출될 때, 다음 형식이 사
70
72
71
73
#: ../../library/zipapp.rst:44
72
74
msgid "$ python -m zipapp source [options]"
73
- msgstr ""
75
+ msgstr "$ python -m zipapp source [options] "
74
76
75
77
#: ../../library/zipapp.rst:48
76
78
msgid ""
@@ -300,9 +302,8 @@ msgstr ""
300
302
"클래스에 필요한 메서드를 제공해야 합니다."
301
303
302
304
#: ../../library/zipapp.rst:174
303
- #, fuzzy
304
305
msgid "Added the *filter* and *compressed* parameters."
305
- msgstr "*filter*\\ 와 *compressed* 인자를 추가했습니다."
306
+ msgstr "*filter*\\ 와 *compressed* 매개 변수를 추가했습니다."
306
307
307
308
#: ../../library/zipapp.rst:179
308
309
msgid ""
@@ -329,6 +330,9 @@ msgid ""
329
330
"$ python myapp.pyz\n"
330
331
"<output from myapp>"
331
332
msgstr ""
333
+ "$ python -m zipapp myapp\n"
334
+ "$ python myapp.pyz\n"
335
+ "<output from myapp>"
332
336
333
337
#: ../../library/zipapp.rst:198
334
338
msgid "The same can be done using the :func:`create_archive` function::"
@@ -339,6 +343,8 @@ msgid ""
339
343
">>> import zipapp\n"
340
344
">>> zipapp.create_archive('myapp', 'myapp.pyz')"
341
345
msgstr ""
346
+ ">>> import zipapp\n"
347
+ ">>> zipapp.create_archive('myapp', 'myapp.pyz')"
342
348
343
349
#: ../../library/zipapp.rst:203
344
350
msgid ""
@@ -352,6 +358,9 @@ msgid ""
352
358
"$ ./myapp.pyz\n"
353
359
"<output from myapp>"
354
360
msgstr ""
361
+ "$ python -m zipapp myapp -p \" /usr/bin/env python\" \n"
362
+ "$ ./myapp.pyz\n"
363
+ "<output from myapp>"
355
364
356
365
#: ../../library/zipapp.rst:212
357
366
msgid ""
@@ -365,9 +374,11 @@ msgid ""
365
374
">>> zipapp.create_archive('old_archive.pyz', 'new_archive.pyz', "
366
375
"'/usr/bin/python3')"
367
376
msgstr ""
377
+ ">>> import zipapp\n"
378
+ ">>> zipapp.create_archive('old_archive.pyz', 'new_archive.pyz', "
379
+ "'/usr/bin/python3')"
368
380
369
381
#: ../../library/zipapp.rst:218
370
- #, fuzzy
371
382
msgid ""
372
383
"To update the file in place, do the replacement in memory using a "
373
384
":class:`~io.BytesIO` object, and then overwrite the source afterwards. "
@@ -376,7 +387,7 @@ msgid ""
376
387
" against such errors, but production code should do so. Also, this "
377
388
"method will only work if the archive fits in memory::"
378
389
msgstr ""
379
- "파일을 제자리에서 갱신하려면, :class:`BytesIO` 객체를 사용하여 메모리에서 치환을 수행한 다음, 나중에 소스를 "
390
+ "파일을 제자리에서 갱신하려면, :class:`~io. BytesIO` 객체를 사용하여 메모리에서 치환을 수행한 다음, 나중에 소스를 "
380
391
"덮어씁니다. 파일을 제자리에서 덮어쓰면 에러로 인해 원본 파일을 손실할 위험이 있음에 유의하십시오. 이 코드는 이러한 에러에 대한 "
381
392
"보호는 없지만, 프로덕션 코드는 이를 방지해야 합니다. 또한, 이 방법은 아카이브가 메모리에 올라올 수 있을 때만 작동합니다::"
382
393
@@ -389,6 +400,12 @@ msgid ""
389
400
">>> with open('myapp.pyz', 'wb') as f:\n"
390
401
">>> f.write(temp.getvalue())"
391
402
msgstr ""
403
+ ">>> import zipapp\n"
404
+ ">>> import io\n"
405
+ ">>> temp = io.BytesIO()\n"
406
+ ">>> zipapp.create_archive('myapp.pyz', temp, '/usr/bin/python2')\n"
407
+ ">>> with open('myapp.pyz', 'wb') as f:\n"
408
+ ">>> f.write(temp.getvalue())"
392
409
393
410
#: ../../library/zipapp.rst:236
394
411
msgid "Specifying the Interpreter"
@@ -479,7 +496,7 @@ msgstr "pip을 사용하여 모든 응용 프로그램의 종속성을 ``myapp``
479
496
480
497
#: ../../library/zipapp.rst:276
481
498
msgid "$ python -m pip install -r requirements.txt --target myapp"
482
- msgstr ""
499
+ msgstr "$ python -m pip install -r requirements.txt --target myapp "
483
500
484
501
#: ../../library/zipapp.rst:280
485
502
msgid ""
@@ -496,7 +513,7 @@ msgstr "다음과 같이 응용 프로그램을 패키징하십시오:"
496
513
497
514
#: ../../library/zipapp.rst:286
498
515
msgid "$ python -m zipapp -p \" interpreter\" myapp"
499
- msgstr ""
516
+ msgstr "$ python -m zipapp -p \" interpreter \" myapp "
500
517
501
518
#: ../../library/zipapp.rst:290
502
519
msgid ""
@@ -578,7 +595,6 @@ msgid "Formally, the Python zip application format is therefore:"
578
595
msgstr "따라서 공식적으로 파이썬 zip 응용 프로그램 형식은 다음과 같습니다:"
579
596
580
597
#: ../../library/zipapp.rst:331
581
- #, fuzzy
582
598
msgid ""
583
599
"An optional shebang line, containing the characters ``b'#!'`` followed by"
584
600
" an interpreter name, and then a newline (``b'\\ n'``) character. The "
@@ -589,7 +605,7 @@ msgid ""
589
605
msgstr ""
590
606
"문자 ``b'#!'``, 인터프리터 이름, 개행 (``b'\\ n'``) 문자를 포함하는 선택적 셔뱅(shebang) 줄. 인터프리터"
591
607
" 이름은 OS \" 셔뱅\" 처리가 허용하는 모든 것, 또는 윈도우의 파이썬 런처일 수 있습니다. 인터프리터는 윈도우에서는 "
592
- "UTF-8로, POSIX에서는 :func:`sys.getfilesystemencoding() `\\ 으로 인코딩되어야 합니다."
608
+ "UTF-8로, POSIX에서는 :func:`sys.getfilesystemencoding`\\ 으로 인코딩되어야 합니다."
593
609
594
610
#: ../../library/zipapp.rst:336
595
611
msgid ""
@@ -619,168 +635,5 @@ msgstr ""
619
635
620
636
#: ../../library/zipapp.rst:11
621
637
msgid "Executable Zip Files"
622
- msgstr ""
623
-
624
- #~ msgid ""
625
- #~ "Optionally, delete the ``.dist-info`` "
626
- #~ "directories created by pip in the "
627
- #~ "``myapp`` directory. These hold metadata "
628
- #~ "for pip to manage the packages, "
629
- #~ "and as you won't be making any "
630
- #~ "further use of pip they aren't "
631
- #~ "required - although it won't do "
632
- #~ "any harm if you leave them."
633
- #~ msgstr ""
634
- #~ "선택적으로, ``myapp`` 디렉터리에 pip이 만든 "
635
- #~ "``.dist-info`` 디렉터리를 삭제합니다. 이것들은 pip이 "
636
- #~ "패키지를 관리하는 데 필요한 메타 데이터를 담고 "
637
- #~ "있으면, pip을 더는 사용하지 않을 것이기 때문에 "
638
- #~ "필요하지 않습니다 - 남겨두더라도 아무런 해를 끼치지는 "
639
- #~ "않습니다."
640
-
641
- #~ msgid "Making a Windows executable"
642
- #~ msgstr "윈도우 실행 파일 만들기"
643
-
644
- #~ msgid ""
645
- #~ "On Windows, registration of the ``.pyz``"
646
- #~ " extension is optional, and furthermore,"
647
- #~ " there are certain places that don't"
648
- #~ " recognise registered extensions "
649
- #~ "\"transparently\" (the simplest example is "
650
- #~ "that ``subprocess.run(['myapp'])`` won't find "
651
- #~ "your application - you need to "
652
- #~ "explicitly specify the extension)."
653
- #~ msgstr ""
654
- #~ "윈도우에서, ``.pyz`` 확장자의 등록은 선택 사항입니다, "
655
- #~ "더군다나 등록된 확장자를 \"투명하게\" 인식하지 못하는 특정"
656
- #~ " 장소가 있습니다 (가장 간단한 예는 "
657
- #~ "``subprocess.run(['myapp'])``\\이 응용 프로그램을 찾지 "
658
- #~ "못하는 것입니다 - 확장자를 명시적으로 지정해야 합니다)"
659
- #~ " ."
660
-
661
- #~ msgid ""
662
- #~ "On Windows, therefore, it is often "
663
- #~ "preferable to create an executable from"
664
- #~ " the zipapp. This is relatively "
665
- #~ "easy, although it does require a C"
666
- #~ " compiler. The basic approach relies "
667
- #~ "on the fact that zipfiles can have"
668
- #~ " arbitrary data prepended, and Windows "
669
- #~ "exe files can have arbitrary data "
670
- #~ "appended. So by creating a suitable "
671
- #~ "launcher and tacking the ``.pyz`` file"
672
- #~ " onto the end of it, you end"
673
- #~ " up with a single-file executable "
674
- #~ "that runs your application."
675
- #~ msgstr ""
676
- #~ "따라서 윈도우에서는, 종종 zipapp에서 실행 파일을 만드는"
677
- #~ " 것이 좋습니다. C 컴파일러가 필요하지만, 비교적 "
678
- #~ "쉽습니다. 기본 접근법은 zip 파일의 앞에 임의의 "
679
- #~ "데이터가 추가될 수 있고, 윈도우 exe 파일에는 "
680
- #~ "임의의 데이터가 뒤에 추가될 수 있다는 사실에 "
681
- #~ "의존합니다. 따라서 적절한 런처를 만들고 ``.pyz`` "
682
- #~ "파일을 그 끝에 붙임으로써, 응용 프로그램을 실행하는 "
683
- #~ "단일 파일 실행 파일이 생깁니다."
684
-
685
- #~ msgid "A suitable launcher can be as simple as the following::"
686
- #~ msgstr "적합한 런처는 다음처럼 간단할 수 있습니다::"
687
-
688
- #~ msgid ""
689
- #~ "If you define the ``WINDOWS`` "
690
- #~ "preprocessor symbol, this will generate "
691
- #~ "a GUI executable, and without it, "
692
- #~ "a console executable."
693
- #~ msgstr "``WINDOWS`` 전처리기 기호를 정의하면, GUI 실행 파일을 만들고, 그렇지 않으면 콘솔 실행 파일을 만듭니다."
694
-
695
- #~ msgid ""
696
- #~ "To compile the executable, you can "
697
- #~ "either just use the standard MSVC "
698
- #~ "command line tools, or you can "
699
- #~ "take advantage of the fact that "
700
- #~ "distutils knows how to compile Python"
701
- #~ " source::"
702
- #~ msgstr ""
703
- #~ "실행 파일을 컴파일하려면, 그냥 표준 MSVC 명령 "
704
- #~ "줄 도구를 사용하거나 distutils가 파이썬 소스를 "
705
- #~ "컴파일하는 방법을 알고 있다는 사실을 활용할 수 "
706
- #~ "있습니다::"
707
-
708
- #~ msgid ""
709
- #~ "The resulting launcher uses the "
710
- #~ "\"Limited ABI\", so it will run "
711
- #~ "unchanged with any version of Python "
712
- #~ "3.x. All it needs is for Python"
713
- #~ " (``python3.dll``) to be on the "
714
- #~ "user's ``PATH``."
715
- #~ msgstr ""
716
- #~ "결과 런처는 \"제한된 ABI\"를 사용해서, 모든 버전의"
717
- #~ " 파이썬 3.x에서 변경 없이 실행됩니다. "
718
- #~ "파이썬(``python3.dll``)이 사용자의 ``PATH``\\에 있기만 하면"
719
- #~ " 됩니다."
720
-
721
- #~ msgid ""
722
- #~ "For a fully standalone distribution, you"
723
- #~ " can distribute the launcher with "
724
- #~ "your application appended, bundled with "
725
- #~ "the Python \"embedded\" distribution. This"
726
- #~ " will run on any PC with the"
727
- #~ " appropriate architecture (32 bit or "
728
- #~ "64 bit)."
729
- #~ msgstr ""
730
- #~ "완전 독립형 배포를 위해서는, 응용 프로그램을 덧붙인 "
731
- #~ "런처와 함께 파이썬 \"내장(embedded)\" 배포를 번들로 "
732
- #~ "배포할 수 있습니다. 적절한 아키텍처(32비트나 64비트)를 "
733
- #~ "갖는 모든 PC에서 실행됩니다."
734
-
735
- #~ msgid ""
736
- #~ "There are some limitations to the "
737
- #~ "process of bundling your application "
738
- #~ "into a single file. In most, if"
739
- #~ " not all, cases they can be "
740
- #~ "addressed without needing major changes "
741
- #~ "to your application."
742
- #~ msgstr ""
743
- #~ "응용 프로그램을 단일 파일로 묶는 과정에는 몇 가지"
744
- #~ " 제한이 있습니다. 전부는 아니더라도 대부분의 경우 응용"
745
- #~ " 프로그램을 크게 변경하지 않고도 해결할 수 있습니다."
746
-
747
- #~ msgid ""
748
- #~ "If you are shipping a Windows "
749
- #~ "executable as described above, you "
750
- #~ "either need to ensure that your "
751
- #~ "users have ``python3.dll`` on their PATH"
752
- #~ " (which is not the default behaviour"
753
- #~ " of the installer) or you should "
754
- #~ "bundle your application with the "
755
- #~ "embedded distribution."
756
- #~ msgstr ""
757
- #~ "위에서 설명한 대로 윈도우 실행 파일을 제공하는 "
758
- #~ "경우, 사용자의 PATH에 ``python3.dll``\\이 있는지 "
759
- #~ "(설치 프로그램의 기본 동작이 아님) 확인하거나 응용 "
760
- #~ "프로그램과 함께 내장 배포를 번들로 제공해야 합니다."
761
-
762
- #~ msgid ""
763
- #~ "The suggested launcher above uses the"
764
- #~ " Python embedding API. This means "
765
- #~ "that in your application, ``sys.executable``"
766
- #~ " will be your application, and *not*"
767
- #~ " a conventional Python interpreter. Your"
768
- #~ " code and its dependencies need to"
769
- #~ " be prepared for this possibility. "
770
- #~ "For example, if your application uses"
771
- #~ " the :mod:`multiprocessing` module, it will"
772
- #~ " need to call "
773
- #~ ":func:`multiprocessing.set_executable` to let the"
774
- #~ " module know where to find the "
775
- #~ "standard Python interpreter."
776
- #~ msgstr ""
777
- #~ "위에서 제안한 런처는 파이썬 내장(embedding) API를 "
778
- #~ "사용합니다. 이는 여러분의 응용 프로그램에서, "
779
- #~ "``sys.executable``\\이 일반적인 파이썬 인터프리터가 *아니라*"
780
- #~ " 여러분의 응용 프로그램이 된다는 뜻입니다. 코드와 "
781
- #~ "종속성은 이 가능성에 대비해야 합니다. 예를 들어, "
782
- #~ "응용 프로그램에서 :mod:`multiprocessing` 모듈을 사용하면, "
783
- #~ "표준 파이썬 인터프리터를 찾을 위치를 모듈에 알리기 "
784
- #~ "위해 :func:`multiprocessing.set_executable`\\을 호출해야 "
785
- #~ "합니다."
638
+ msgstr "실행 가능한 Zip 파일"
786
639
0 commit comments