diff options
author | Martin v. L?wis <martin@v.loewis.de> | 2012-04-20 14:37:17 +0200 |
---|---|---|
committer | Martin v. L?wis <martin@v.loewis.de> | 2012-04-20 14:37:17 +0200 |
commit | b467205669cae187c9bbce311069c4875518bfae (patch) | |
tree | ce7686f020917e8883d1818b8fadece2cc15fa06 /Doc/install/pysetup-servers.rst | |
parent | f235cad91035d648e09ae7a1867fc9aa49ae8963 (diff) | |
parent | 2c826ad61cf991d15646ae7bfac2d0cb34535cd8 (diff) | |
download | cpython-b467205669cae187c9bbce311069c4875518bfae.tar.gz |
merge 3.2: issue 14629
Diffstat (limited to 'Doc/install/pysetup-servers.rst')
-rw-r--r-- | Doc/install/pysetup-servers.rst | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/Doc/install/pysetup-servers.rst b/Doc/install/pysetup-servers.rst new file mode 100644 index 0000000000..c6106de77d --- /dev/null +++ b/Doc/install/pysetup-servers.rst @@ -0,0 +1,61 @@ +.. _packaging-pysetup-servers: + +=============== +Package Servers +=============== + +Pysetup supports installing Python packages from *Package Servers* in addition +to PyPI indexes and mirrors. + +Package Servers are simple directory listings of Python distributions. Directories +can be served via HTTP or a local file system. This is useful when you want to +dump source distributions in a directory and not worry about the full index structure. + +Serving distributions from Apache +--------------------------------- +:: + + $ mkdir -p /var/www/html/python/distributions + $ cp *.tar.gz /var/www/html/python/distributions/ + + <VirtualHost python.example.org:80> + ServerAdmin webmaster@domain.com + DocumentRoot "/var/www/html/python" + ServerName python.example.org + ErrorLog logs/python.example.org-error.log + CustomLog logs/python.example.org-access.log common + Options Indexes FollowSymLinks MultiViews + DirectoryIndex index.html index.htm + + <Directory "/var/www/html/python/distributions"> + Options Indexes FollowSymLinks MultiViews + Order allow,deny + Allow from all + </Directory> + </VirtualHost> + +Add the Apache based distribution server to :file:`.pypirc`:: + + [packaging] + package-servers = + apache + + [apache] + repository: http://python.example.org/distributions/ + + +Serving distributions from a file system +---------------------------------------- +:: + + $ mkdir -p /data/python/distributions + $ cp *.tar.gz /data/python/distributions/ + +Add the directory to :file:`.pypirc`:: + + [packaging] + package-servers = + local + + [local] + repository: file:///data/python/distributions/ |