From e7e106f89f026c70330af91078dcdd5365b7c576 Mon Sep 17 00:00:00 2001 From: Nanda Kishore Date: Wed, 4 May 2011 08:48:32 +0530 Subject: [PATCH 1/3] Adding Personal PyPI section --- docs/shipping/packaging.rst | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/docs/shipping/packaging.rst b/docs/shipping/packaging.rst index d871464..90f3f11 100644 --- a/docs/shipping/packaging.rst +++ b/docs/shipping/packaging.rst @@ -20,6 +20,35 @@ x y z Personal PyPi ------------- +If you want to install packages from a source different from PyPI, (say, if +your packages are proprietary), you can do it by hosting a simple http server, +running from the directory which holds those packages which need to be installed. + +#### Showing an example is always benificial: + + +Say if you are after installing a package called MyPackage.tar.gz, and assuming this is your directory structure + +- archive + - MyPackage + - MyPackage.tar.gz + +Go to your command prompt and type: + + $ cd archive + $ python -m SimpleHTTPServer 9000 + +This runs a simple http server running on port 9000 and will list down all packages(like "MyPackage"). Now you can install _MyPackage_ using any python package installer. Say using Pip, you would do it like: + + $ pip install --extra-index-url=http://127.0.0.1:9000/ MyPackage + +Remember! having a folder with the same name as the package name is __crucial__ here. +I got fooled by that, one time. But if you feel that creating a folder called +__MyPackage__ and keeping __MyPackage.tar.gz__ inside that, is _reduntant_, you can still +install MyPackage like: + + $ pip install http://127.0.0.1:9000/MyPackage.tar.gz + For Linux Distributions :::::::::::::::::::::::: From a0124951cd28c5c3571296fdaab1525efe78e525 Mon Sep 17 00:00:00 2001 From: Nanda Kishore Date: Wed, 4 May 2011 11:06:06 -0700 Subject: [PATCH 2/3] Formatting --- docs/shipping/packaging.rst | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/docs/shipping/packaging.rst b/docs/shipping/packaging.rst index 90f3f11..70957e0 100644 --- a/docs/shipping/packaging.rst +++ b/docs/shipping/packaging.rst @@ -21,33 +21,36 @@ Personal PyPi ------------- If you want to install packages from a source different from PyPI, (say, if -your packages are proprietary), you can do it by hosting a simple http server, +your packages are *proprietary*), you can do it by hosting a simple http server, running from the directory which holds those packages which need to be installed. -#### Showing an example is always benificial: - +-------------------------------------------- +Showing an example is always benificial +-------------------------------------------- Say if you are after installing a package called MyPackage.tar.gz, and assuming this is your directory structure - archive - - MyPackage - - MyPackage.tar.gz + - MyPackage + - MyPackage.tar.gz Go to your command prompt and type: +:: - $ cd archive - $ python -m SimpleHTTPServer 9000 +$ cd archive +$ python -m SimpleHTTPServer 9000 -This runs a simple http server running on port 9000 and will list down all packages(like "MyPackage"). Now you can install _MyPackage_ using any python package installer. Say using Pip, you would do it like: +This runs a simple http server running on port 9000 and will list down all packages(like **MyPackage**). Now you can install **MyPackage** using any python package installer. Using Pip, you would do it like: +:: - $ pip install --extra-index-url=http://127.0.0.1:9000/ MyPackage +$ pip install --extra-index-url=http://127.0.0.1:9000/ MyPackage -Remember! having a folder with the same name as the package name is __crucial__ here. +Remember! having a folder with the same name as the package name is **crucia** here. I got fooled by that, one time. But if you feel that creating a folder called -__MyPackage__ and keeping __MyPackage.tar.gz__ inside that, is _reduntant_, you can still -install MyPackage like: +**MyPackag** and keeping **MyPackage.tar.gz** inside that, is *reduntant*, you can still install MyPackage using: +:: - $ pip install http://127.0.0.1:9000/MyPackage.tar.gz +$ pip install http://127.0.0.1:9000/MyPackage.tar.gz For Linux Distributions From f0ab6cd7c5bb95ab6fc0c26d1ef8139987ebc60e Mon Sep 17 00:00:00 2001 From: Nanda Kishore Date: Wed, 4 May 2011 11:10:49 -0700 Subject: [PATCH 3/3] Edited docs/shipping/packaging.rst via GitHub --- docs/shipping/packaging.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/shipping/packaging.rst b/docs/shipping/packaging.rst index 70957e0..745a3cb 100644 --- a/docs/shipping/packaging.rst +++ b/docs/shipping/packaging.rst @@ -24,12 +24,11 @@ If you want to install packages from a source different from PyPI, (say, if your packages are *proprietary*), you can do it by hosting a simple http server, running from the directory which holds those packages which need to be installed. --------------------------------------------- -Showing an example is always benificial --------------------------------------------- +**Showing an example is always benificial** Say if you are after installing a package called MyPackage.tar.gz, and assuming this is your directory structure + - archive - MyPackage - MyPackage.tar.gz