Skip to content

Instantly share code, notes, and snippets.

@knil-sama
Created May 7, 2018 08:34
Show Gist options
  • Save knil-sama/cd938f9084844f097874b314f013a9c0 to your computer and use it in GitHub Desktop.
Save knil-sama/cd938f9084844f097874b314f013a9c0 to your computer and use it in GitHub Desktop.
sudo yum install -y python34 python34-pip httpd-tools
sudo python3 -m pip install pypiserver passlib
# input password manualy for this one
htpasswd -sc htpasswd.txt data-packages-user
mkdir ~/packages
# need to be root, sudo didn't work do sudo su
echo "
description 'A minimal PyPI server for use with pip/easy_install.'
author 'Clement Demonchy'
start on runlevel [2345]
exec /usr/local/bin/pypi-server --overwrite -p 8080 -a update,download --log-file /var/log/pypiserver.log -P /home/ec2-user/htpasswd.txt /home/ec2-user/packages
" > /etc/init/pypi_server.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment