Skip to content

Commit 0c88e4f

Browse files
committed
merged the changes (r369:550) for Japanese translation
1 parent 799d679 commit 0c88e4f

File tree

1 file changed

+236
-4
lines changed

1 file changed

+236
-4
lines changed

docs/ja/command_ref.rst

Lines changed: 236 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,14 @@ WORKON_HOME に新たな仮想環境を作成します。
4141
4242
構文::
4343

44-
mkvirtualenv [options] ENVNAME
44+
mkvirtualenv [-a project_path] [-i package] [-r requirements_file] [virtualenv options] ENVNAME
4545

4646
..
47-
All command line options are passed directly to ``virtualenv``. The
48-
new environment is automatically activated after being initialized.
47+
All command line options except ``-a``, ``-i``, ``-r``, and ``-h`` are passed
48+
directly to ``virtualenv``. The new environment is automatically
49+
activated after being initialized.
4950
50-
全てのコマンドラインオプションは ``virtualenv`` へ直接渡されます。新しい仮想環境は初期化された後に自動的にアクティブ化されます。
51+
``-a``, ``-i``, ``-r``, ``-h`` を除いた全てのコマンドラインオプションは ``virtualenv`` へ直接的に渡されます。新しい仮想環境は初期化された後に自動的にアクティブ化されます。
5152

5253
::
5354

@@ -62,10 +63,68 @@ WORKON_HOME に新たな仮想環境を作成します。
6263
mynewenv
6364
(mynewenv)$
6465

66+
..
67+
The ``-a`` option can be used to associate an existing project
68+
directory with the new environment.
69+
70+
``-a`` オプションは、既存のプロジェクトディレクトリに新しい環境を関連付けるのに使います。
71+
72+
..
73+
The ``-i`` option can be used to install one or more packages (by
74+
repeating the option) after the environment is created.
75+
76+
``-i`` オプションは、その環境を作成した後に指定したパッケージをインストールできます (このオプションを繰り返し使うことで複数のパッケージもインストールできます) 。
77+
78+
..
79+
The ``-r`` option can be used to specify a text file listing packages
80+
to be installed. The argument value is passed to ``pip -r`` to be
81+
installed.
82+
83+
``-r`` オプションは、インストールしたいパッケージ一覧を保存したテキストファイルを指定するのに使います。この引数のファイル名は ``pip -r`` へ渡されてインストールが行われます。
84+
6585
.. seealso::
6686

6787
* :ref:`scripts-premkvirtualenv`
6888
* :ref:`scripts-postmkvirtualenv`
89+
* `requirements ファイルのフォーマット`_
90+
91+
.. _requirements file format: http://www.pip-installer.org/en/latest/requirement-format.html
92+
.. _requirements ファイルのフォーマット: http://www.pip-installer.org/en/latest/requirements.html#the-requirements-file-format
93+
94+
.. _command-mktmpenv:
95+
96+
mktmpenv
97+
--------
98+
99+
..
100+
Create a new virtualenv in the ``WORKON_HOME`` directory.
101+
102+
``WORKON_HOME`` ディレクトリに新しい環境を作成します。
103+
104+
..
105+
Syntax::
106+
107+
構文::
108+
109+
mktmpenv [VIRTUALENV_OPTIONS]
110+
111+
..
112+
A unique virtualenv name is generated.
113+
114+
一意な名前をもつ virtualenv 環境が生成されます。
115+
116+
::
117+
118+
$ mktmpenv
119+
Using real prefix '/Library/Frameworks/Python.framework/Versions/2.7'
120+
New python executable in 1e513ac6-616e-4d56-9aa5-9d0a3b305e20/bin/python
121+
Overwriting 1e513ac6-616e-4d56-9aa5-9d0a3b305e20/lib/python2.7/distutils/__init__.py
122+
with new content
123+
Installing distribute...............................................
124+
....................................................................
125+
.................................................................done.
126+
This is a temporary environment. It will be deleted when deactivated.
127+
(1e513ac6-616e-4d56-9aa5-9d0a3b305e20) $
69128

70129
.. _command-lsvirtualenv:
71130

@@ -124,6 +183,8 @@ showvirtualenv
124183

125184
* :ref:`scripts-get_env_details`
126185

186+
.. _command-rmvirtualenv:
187+
127188
rmvirtualenv
128189
------------
129190

@@ -503,3 +564,174 @@ site-packages ディレクトリ内の ``virtualenv_path_extensions.pth`` と名
503564
*Based on a contribution from James Bennett and Jannis Leidel.*
504565
505566
*James Bennett と Jannis Leidel から提供されたものに基づいています。*
567+
568+
.. _command-toggleglobalsitepackages:
569+
570+
toggleglobalsitepackages
571+
------------------------
572+
573+
..
574+
Controls whether the active virtualenv will access the packages in the
575+
global Python ``site-packages`` directory.
576+
577+
アクティブな virtualenv が、グローバルの Python ``site-packages`` ディレクトリにあるパッケージにアクセスさせるかどうかを制御します。
578+
579+
..
580+
Syntax::
581+
582+
構文::
583+
584+
toggleglobalsitepackages [-q]
585+
586+
..
587+
Outputs the new state of the virtualenv. Use the ``-q`` switch to turn off all
588+
output.
589+
590+
実行すると virtualenv の更新後の状態を表示します。非表示にするには ``-q`` を指定してください。
591+
592+
::
593+
594+
$ mkvirtualenv env1
595+
New python executable in env1/bin/python
596+
Installing distribute.............................................
597+
..................................................................
598+
..................................................................
599+
done.
600+
(env1)$ toggleglobalsitepackages
601+
Disabled global site-packages
602+
(env1)$ toggleglobalsitepackages
603+
Enabled global site-packages
604+
(env1)$ toggleglobalsitepackages -q
605+
(env1)$
606+
607+
..
608+
============================
609+
Project Directory Management
610+
============================
611+
612+
==============================
613+
プロジェクトディレクトリの管理
614+
==============================
615+
616+
.. seealso::
617+
618+
:ref:`project-management`
619+
620+
.. _command-mkproject:
621+
622+
mkproject
623+
---------
624+
625+
..
626+
Create a new virtualenv in the WORKON_HOME and project directory in
627+
PROJECT_HOME.
628+
629+
PROJECT_HOME にプロジェクトディレクトリと WORKON_HOME に新しい virtualenv を作成します。
630+
631+
..
632+
Syntax::
633+
634+
構文::
635+
636+
mkproject [-t template] [virtualenv_options] ENVNAME
637+
638+
..
639+
The template option may be repeated to have several templates used to
640+
create a new project. The templates are applied in the order named on
641+
the command line. All other options are passed to ``mkvirtualenv`` to
642+
create a virtual environment with the same name as the project.
643+
644+
テンプレートオプションは、新しいプロジェクトを作成するのに使うテンプレートを複数指定できます。テンプレートはコマンドラインで指定した順番で適用されます。その他の全てのオプションは、プロジェクトと同じ名前をもつ仮想環境を作成するために ``mkvirtualenv`` に渡されます。
645+
646+
::
647+
648+
$ mkproject myproj
649+
New python executable in myproj/bin/python
650+
Installing distribute.............................................
651+
..................................................................
652+
..................................................................
653+
done.
654+
Creating /Users/dhellmann/Devel/myproj
655+
(myproj)$ pwd
656+
/Users/dhellmann/Devel/myproj
657+
(myproj)$ echo $VIRTUAL_ENV
658+
/Users/dhellmann/Envs/myproj
659+
(myproj)$
660+
661+
.. seealso::
662+
663+
* :ref:`scripts-premkproject`
664+
* :ref:`scripts-postmkproject`
665+
666+
setvirtualenvproject
667+
--------------------
668+
669+
..
670+
Bind an existing virtualenv to an existing project.
671+
672+
既存の virtualenv を既存のプロジェクトに束縛します。
673+
674+
..
675+
Syntax::
676+
677+
構文::
678+
679+
setvirtualenvproject [virtualenv_path project_path]
680+
681+
..
682+
The arguments to ``setvirtualenvproject`` are the full paths to the
683+
virtualenv and project directory. An association is made so that when
684+
``workon`` activates the virtualenv the project is also activated.
685+
686+
``setvirtualenvproject`` への引数は、virtualenv とプロジェクトディレクトリへのフルパスです。仮想環境のアクティブ化を ``workon`` で行うときに、そのプロジェクトもアクティブ化されるように連携します。
687+
688+
::
689+
690+
$ mkproject myproj
691+
New python executable in myproj/bin/python
692+
Installing distribute.............................................
693+
..................................................................
694+
..................................................................
695+
done.
696+
Creating /Users/dhellmann/Devel/myproj
697+
(myproj)$ mkvirtualenv myproj_new_libs
698+
New python executable in myproj/bin/python
699+
Installing distribute.............................................
700+
..................................................................
701+
..................................................................
702+
done.
703+
Creating /Users/dhellmann/Devel/myproj
704+
(myproj_new_libs)$ setvirtualenvproject $VIRTUAL_ENV $(pwd)
705+
706+
..
707+
When no arguments are given, the current virtualenv and current
708+
directory are assumed.
709+
710+
引数を指定しない場合は、カレントの virtualenv とカレントディレクトリが指定されたと見なします。
711+
712+
..
713+
Any number of virtualenvs can refer to the same project directory,
714+
making it easy to switch between versions of Python or other
715+
dependencies for testing.
716+
717+
任意の数の virtualenv が、Python またはその他のテスト向けの依存関係をもったバージョン間で切り替えやすいように、同じプロジェクトディレクトリを参照できます。
718+
719+
.. _command-cdproject:
720+
721+
cdproject
722+
---------
723+
724+
..
725+
Change the current working directory to the one specified as the
726+
project directory for the active virtualenv.
727+
728+
カレントのワークディレクトリから、アクティブな virtualenv のプロジェクトディレクトリとして指定したディレクトリに変更します。
729+
730+
..
731+
Syntax::
732+
733+
構文::
734+
735+
736+
cdproject
737+

0 commit comments

Comments
 (0)