~ubuntu-branches/ubuntu/trusty/virtualenvwrapper/trusty-proposed

« back to all changes in this revision

Viewing changes to docs/html/ja/_sources/command_ref.txt

  • Committer: Package Import Robot
  • Author(s): Jan Dittberner
  • Date: 2012-05-17 14:24:08 UTC
  • mfrom: (1.2.15)
  • Revision ID: package-import@ubuntu.com-20120517142408-5dexv6w1cldbzx3j
Tags: 3.3-1
* New upstream version
* change Build-Depends for dh_sphinxdoc to python-sphinx (>=
  1.0.7+dfsg) | python3-sphinx
* bump Standards-Version to 3.9.3 (no changes)
* refresh debian/patches/debianspecific-setup.py.patch
* use symlinks for duplicated ajax-loader.gif
* Fix "FTBFS if built twice in a row: virtualenvwrapper/__init__.pyc:
  binary file contents changed" by removing *.pyc in clean target
  (Closes: #641735)

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
 
42
42
構文::
43
43
 
44
 
    mkvirtualenv [options] ENVNAME
 
44
    mkvirtualenv [-a project_path] [-i package] [-r requirements_file] [virtualenv options] ENVNAME
45
45
 
46
46
..
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.
49
50
 
50
 
全てのコマンドラインオプションは ``virtualenv`` へ直接渡されます。新しい仮想環境は初期化された後に自動的にアクティブ化されます。
 
51
``-a``, ``-i``, ``-r``, ``-h`` を除いた全てのコマンドラインオプションは ``virtualenv`` へ直接的に渡されます。新しい仮想環境は初期化された後に自動的にアクティブ化されます。
51
52
 
52
53
::
53
54
 
62
63
    mynewenv
63
64
    (mynewenv)$ 
64
65
 
 
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
 
65
85
.. seealso::
66
86
 
67
87
   * :ref:`scripts-premkvirtualenv`
68
88
   * :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) $
69
128
 
70
129
.. _command-lsvirtualenv:
71
130
 
124
183
 
125
184
   * :ref:`scripts-get_env_details`
126
185
 
 
186
.. _command-rmvirtualenv:
 
187
 
127
188
rmvirtualenv
128
189
------------
129
190
 
503
564
    *Based on a contribution from James Bennett and Jannis Leidel.*
504
565
 
505
566
*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
.. _command-setvirtualenvproject:
 
667
 
 
668
setvirtualenvproject
 
669
--------------------
 
670
 
 
671
..
 
672
    Bind an existing virtualenv to an existing project.
 
673
 
 
674
既存の virtualenv を既存のプロジェクトに束縛します。
 
675
 
 
676
..
 
677
    Syntax::
 
678
 
 
679
構文::
 
680
 
 
681
  setvirtualenvproject [virtualenv_path project_path]
 
682
 
 
683
..
 
684
    The arguments to ``setvirtualenvproject`` are the full paths to the
 
685
    virtualenv and project directory.  An association is made so that when
 
686
    ``workon`` activates the virtualenv the project is also activated.
 
687
 
 
688
``setvirtualenvproject`` への引数は、virtualenv とプロジェクトディレクトリへのフルパスです。仮想環境のアクティブ化を ``workon`` で行うときに、そのプロジェクトもアクティブ化されるように連携します。
 
689
 
 
690
::
 
691
 
 
692
    $ mkproject myproj
 
693
    New python executable in myproj/bin/python
 
694
    Installing distribute.............................................
 
695
    ..................................................................
 
696
    ..................................................................
 
697
    done.
 
698
    Creating /Users/dhellmann/Devel/myproj
 
699
    (myproj)$ mkvirtualenv myproj_new_libs
 
700
    New python executable in myproj/bin/python
 
701
    Installing distribute.............................................
 
702
    ..................................................................
 
703
    ..................................................................
 
704
    done.
 
705
    Creating /Users/dhellmann/Devel/myproj
 
706
    (myproj_new_libs)$ setvirtualenvproject $VIRTUAL_ENV $(pwd)
 
707
 
 
708
..
 
709
    When no arguments are given, the current virtualenv and current
 
710
    directory are assumed.
 
711
 
 
712
引数を指定しない場合は、カレントの virtualenv とカレントディレクトリが指定されたと見なします。
 
713
 
 
714
..
 
715
    Any number of virtualenvs can refer to the same project directory,
 
716
    making it easy to switch between versions of Python or other
 
717
    dependencies for testing.
 
718
 
 
719
任意の数の virtualenv が、Python またはその他のテスト向けの依存関係をもったバージョン間で切り替えやすいように、同じプロジェクトディレクトリを参照できます。
 
720
 
 
721
.. _command-cdproject:
 
722
 
 
723
cdproject
 
724
---------
 
725
 
 
726
..
 
727
    Change the current working directory to the one specified as the
 
728
    project directory for the active virtualenv.
 
729
 
 
730
カレントのワークディレクトリから、アクティブな virtualenv のプロジェクトディレクトリとして指定したディレクトリに変更します。
 
731
 
 
732
..
 
733
    Syntax::
 
734
 
 
735
構文::
 
736
 
 
737
 
 
738
  cdproject
 
739