Needed because filenames in the setupscript are always supplied in Unix style, and have to be converted to the localconvention before we can actually use them in the filesystem. セットアップスクリプト中のファイル名はUnixスタイルで提供され、実際に利用する前に変換する必要があるため、この関数が必要になります。 - Python
Thus,users on the most popular platforms will be able to install most popular Python module distributions in the most natural way for their platform,without having to run a single setupscript or compile a line of code. したがって、ほとんどの一般的なプラットフォームにおけるユーザは、setup スクリプト一つ実行せず、コードを一行たりともコンパイルしなくても、使っているプラットフォーム向けのきわめて普通の方法でほとんどの一般的な Python モジュール配布物をインストールできるでしょう。 - Python
You don't need to run Python or a setupscript, you don't need to compileanything--you might not even need to read any instructions (althoughit's always a good idea to do so anyways).Of course, things will not always be that easy. Python を起動したり、 setup スクリプトを実行する必要はなく、何もコンパイルする必要はありません -- 説明書きを読む必要すら全くないかもしれません (とはいえ、説明書きを読むのはよいことですが)。 もちろん、いつもこう簡単とは限りません。 - Python
This is particularly helpful when the build and install will be done by different users--for example, you might want to build a module distribution and hand it off to a system administrator for installation (or do it yourself, with super-user privileges).For example, you can build everything in one step, and then install everything in a second step, by invoking the setupscript twice: この機能は、ビルドとインストールを異なるユーザで行う場合にも便利です -- 例えば、モジュール配布物をビルドしておいてシステム管理者に渡して (または、自分でスーパユーザになって) 、インストールしたくなるかもしれません.最初のステップでは全てをビルドしておき、次のステップで全てをインストールするには、 setup スクリプトを二度起動します: - Python
Thus,you might think you'll never use the prefix scheme, but every time you run python setup.py install without any other options, you'reusing it.Note that installing extensions to an alternate Python installation has no effect on how those extensions are built: in particular, the Python header files (Python.h and friends) installed with the Python interpreter used to run the setupscript will be used in compilingextensions. というわけで、読者は prefix スキームを決して使うことはあるまいと思っているかもしれませんが、python setup.py install をオプションを何もつけずに実行していれば、常に prefix スキームを使っていることになるのです。 拡張モジュールを別のインストール済み Python にインストールしても、拡張モジュールのビルド方法による影響を受けることはありません:特に、拡張モジュールをコンパイルする際には、setup スクリプトを実行する際に使う Python インタプリタと一緒にインストールされている Python ヘッダファイル (Python.h とその仲間たち) を使います。 - Python
Copyright 2001-2004 Python Software Foundation.All rights reserved. Copyright 2000 BeOpen.com.All rights reserved. Copyright 1995-2000 Corporation for National Research Initiatives.All rights reserved. Copyright 1991-1995 Stichting Mathematisch Centrum.All rights reserved.