File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -37,25 +37,28 @@ assuming this is your directory structure:
3737 - MyPackage.tar.gz
3838
3939Go to your command prompt and type:
40- ::
4140
42- $ cd archive
43- $ python -m SimpleHTTPServer 9000
41+ .. code-block :: console
42+
43+ $ cd archive
44+ $ python -m SimpleHTTPServer 9000
4445
4546 This runs a simple http server running on port 9000 and will list all packages
4647(like **MyPackage **). Now you can install **MyPackage ** using any python
4748package installer. Using Pip, you would do it like:
48- ::
4949
50- $ pip install --extra-index-url=http://127.0.0.1:9000/ MyPackage
50+ .. code-block :: console
51+
52+ $ pip install --extra-index-url=http://127.0.0.1:9000/ MyPackage
5153
5254 Having a folder with the same name as the package name is **crucial ** here.
5355I got fooled by that, one time. But if you feel that creating a folder called
5456**MyPackage ** and keeping **MyPackage.tar.gz ** inside that, is *redundant *,
5557you can still install MyPackage using:
56- ::
5758
58- $ pip install http://127.0.0.1:9000/MyPackage.tar.gz
59+ .. code-block :: console
60+
61+ $ pip install http://127.0.0.1:9000/MyPackage.tar.gz
5962
6063 Chishop
6164+++++++
You can’t perform that action at this time.
0 commit comments