Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
aae10ba9
Commit
aae10ba9
authored
Sep 08, 1997
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change packages to site-packages (so it's clearly not a package itself).
parent
739fa54b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
Doc/lib/libsite.tex
Doc/lib/libsite.tex
+5
-5
Doc/libsite.tex
Doc/libsite.tex
+5
-5
No files found.
Doc/lib/libsite.tex
View file @
aae10ba9
...
...
@@ -15,13 +15,13 @@ It starts by constructing up to four directories from a head and a
tail part. For the head part, it uses
\code
{
sys.prefix
}
and
\code
{
sys.exec
_
prefix
}
; empty heads are skipped. For
the tail part, it uses the empty string (on Mac or Windows) or it uses
first
\file
{
lib/python
\var
{
version
}
/packages
}
and then
first
\file
{
lib/python
\var
{
version
}
/
site-
packages
}
and then
\file
{
lib/site-python
}
(on Unix). For each of the distinct head-tail
combinations, it sees if it refers to an existing directory, and if
so, adds to
\code
{
sys.path
}
, and also inspected for path configuration
files.
\indexii
{
site-python
}{
directory
}
\indexii
{
packages
}{
directory
}
\indexii
{
site-
packages
}{
directory
}
A path configuration file is a file whose name has the form
\file
{
\var
{
package
}
.pth
}
; its contents are additional items (one
...
...
@@ -40,7 +40,7 @@ refers to a directory (rather than a file). No item is added to
For example, suppose
\code
{
sys.prefix
}
and
\code
{
sys.exec
_
prefix
}
are
set to
\file
{
/usr/local
}
. The Python 1.5 library is then installed in
\file
{
/usr/local/lib/python1.5
}
. Suppose this has a subdirectory
\file
{
/usr/local/python1.5/packages
}
with three subsubdirectories,
\file
{
/usr/local/python1.5/
site-
packages
}
with three subsubdirectories,
\file
{
foo
}
,
\file
{
bar
}
and
\file
{
spam
}
, and two path configuration
files,
\file
{
foo.pth
}
and
\file
{
bar.pth
}
. Assume
\file
{
foo.pth
}
contains the following:
...
...
@@ -64,8 +64,8 @@ bar
Then the following directories are added to sys.path, in this order:
\bcode
\begin{verbatim}
/usr/local/python1.5/packages/bar
/usr/local/python1.5/packages/foo
/usr/local/python1.5/
site-
packages/bar
/usr/local/python1.5/
site-
packages/foo
\end{verbatim}
\ecode
Note that
\file
{
bletch
}
is omitted because it doesn't exist; the
...
...
Doc/libsite.tex
View file @
aae10ba9
...
...
@@ -15,13 +15,13 @@ It starts by constructing up to four directories from a head and a
tail part. For the head part, it uses
\code
{
sys.prefix
}
and
\code
{
sys.exec
_
prefix
}
; empty heads are skipped. For
the tail part, it uses the empty string (on Mac or Windows) or it uses
first
\file
{
lib/python
\var
{
version
}
/packages
}
and then
first
\file
{
lib/python
\var
{
version
}
/
site-
packages
}
and then
\file
{
lib/site-python
}
(on Unix). For each of the distinct head-tail
combinations, it sees if it refers to an existing directory, and if
so, adds to
\code
{
sys.path
}
, and also inspected for path configuration
files.
\indexii
{
site-python
}{
directory
}
\indexii
{
packages
}{
directory
}
\indexii
{
site-
packages
}{
directory
}
A path configuration file is a file whose name has the form
\file
{
\var
{
package
}
.pth
}
; its contents are additional items (one
...
...
@@ -40,7 +40,7 @@ refers to a directory (rather than a file). No item is added to
For example, suppose
\code
{
sys.prefix
}
and
\code
{
sys.exec
_
prefix
}
are
set to
\file
{
/usr/local
}
. The Python 1.5 library is then installed in
\file
{
/usr/local/lib/python1.5
}
. Suppose this has a subdirectory
\file
{
/usr/local/python1.5/packages
}
with three subsubdirectories,
\file
{
/usr/local/python1.5/
site-
packages
}
with three subsubdirectories,
\file
{
foo
}
,
\file
{
bar
}
and
\file
{
spam
}
, and two path configuration
files,
\file
{
foo.pth
}
and
\file
{
bar.pth
}
. Assume
\file
{
foo.pth
}
contains the following:
...
...
@@ -64,8 +64,8 @@ bar
Then the following directories are added to sys.path, in this order:
\bcode
\begin{verbatim}
/usr/local/python1.5/packages/bar
/usr/local/python1.5/packages/foo
/usr/local/python1.5/
site-
packages/bar
/usr/local/python1.5/
site-
packages/foo
\end{verbatim}
\ecode
Note that
\file
{
bletch
}
is omitted because it doesn't exist; the
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment