X Tutup
Skip to content

Commit a012495

Browse files
committed
Formatting
1 parent e7e106f commit a012495

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

docs/shipping/packaging.rst

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,33 +21,36 @@ Personal PyPi
2121
-------------
2222

2323
If you want to install packages from a source different from PyPI, (say, if
24-
your packages are proprietary), you can do it by hosting a simple http server,
24+
your packages are *proprietary*), you can do it by hosting a simple http server,
2525
running from the directory which holds those packages which need to be installed.
2626

27-
#### Showing an example is always benificial:
28-
27+
--------------------------------------------
28+
Showing an example is always benificial
29+
--------------------------------------------
2930

3031
Say if you are after installing a package called MyPackage.tar.gz, and assuming this is your directory structure
3132

3233
- archive
33-
- MyPackage
34-
- MyPackage.tar.gz
34+
- MyPackage
35+
- MyPackage.tar.gz
3536

3637
Go to your command prompt and type:
38+
::
3739

38-
$ cd archive
39-
$ python -m SimpleHTTPServer 9000
40+
$ cd archive
41+
$ python -m SimpleHTTPServer 9000
4042

41-
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:
43+
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:
44+
::
4245

43-
$ pip install --extra-index-url=http://127.0.0.1:9000/ MyPackage
46+
$ pip install --extra-index-url=http://127.0.0.1:9000/ MyPackage
4447

45-
Remember! having a folder with the same name as the package name is __crucial__ here.
48+
Remember! having a folder with the same name as the package name is **crucia** here.
4649
I got fooled by that, one time. But if you feel that creating a folder called
47-
__MyPackage__ and keeping __MyPackage.tar.gz__ inside that, is _reduntant_, you can still
48-
install MyPackage like:
50+
**MyPackag** and keeping **MyPackage.tar.gz** inside that, is *reduntant*, you can still install MyPackage using:
51+
::
4952

50-
$ pip install http://127.0.0.1:9000/MyPackage.tar.gz
53+
$ pip install http://127.0.0.1:9000/MyPackage.tar.gz
5154

5255

5356
For Linux Distributions

0 commit comments

Comments
 (0)
X Tutup