File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,36 @@ Chishop
6767written in django which allows you to register/upload with distutils and
6868install with easy_install/pip.
6969
70+ S3-Hosted PyPi
71+ ++++++++++++++
72+
73+ One simple option for a personal PyPi server is to use Amazon S3. A prerequisite for this is that you have an Amazon AWS account with an S3 bucket.
74+
75+ 1. **Install all your requirements from PyPi or another source **
76+ 2. **Install pip2pi **
77+
78+ * :code: `pip install git+https://github.com/wolever/pip2pi.git `
79+
80+ 3. **Follow pip2pi README for pip2tgz and dir2pi commands **
81+
82+ * :code: `pip2tgz packages/ YourPackage ` (or :code: `pip2tgz packages/ -r requirements.txt `)
83+ * :code: `dir2pi packages/ `
84+
85+ 4. **Upload the new files **
86+
87+ * Use a client like Cyberduck to sync the entire :code: `packages ` folder to your s3 bucket
88+ * Make sure you upload :code: `packages/simple/index.html ` as well as all new files and directories
89+
90+ 5. **Fix new file permissions **
91+
92+ * By default, when you upload new files to the S3 bucket, they will have the wrong permissions set.
93+ * Use the Amazon web console to set the READ permission of the files to EVERYONE.
94+ * If you get HTTP 403 when trying to install a package, make sure you've set the permissions correctly.
95+
96+ 6. **All done **
97+
98+ * You can now your package with :code: `pip install --index-url=http://your-s3-bucket/packages/simple/ YourPackage `
99+
70100For Linux Distributions
71101::::::::::::::::::::::::
72102
You can’t perform that action at this time.
0 commit comments