Skip to content

Instantly share code, notes, and snippets.

@ikatson
Last active August 29, 2015 14:03
Show Gist options
  • Save ikatson/21e80a7e0b3e99a78ef6 to your computer and use it in GitHub Desktop.
Save ikatson/21e80a7e0b3e99a78ef6 to your computer and use it in GitHub Desktop.
fpm install native python packages
# Cython can increase the performance of some packages
apt-get install build-essential cython rubygems python-dev python-pip python-setuptools libpcre3-dev
get install fpm
# Build uwsgi
fpm --verbose -s python -t deb --python-install-bin /usr/bin --name uwsgi \
--architecture amd64 -d libpython2.7 -d libpcre3 -d zlib1g -d libssl1.0.0 -d libxml2 uwsgi
# Build gevent debian package
fpm --verbose -s python -t deb greenlet
fpm --verbose -s python -t deb -d 'python-greenlet >= 0.3.2' gevent
# Build libxml debian package
apt-get install libxslt1-dev libxml2-dev
fpm --verbose -s python -t deb -d libxml2 -d libxslt1.1 lxml
# Build psycopg2 debian package
apt-get install libpq-dev
fpm --verbose -s python -t deb -d libpq5 psycopg2
# Python Levenshtein
fpm --verbose -s python -t deb python-Levenshtein
# Sqlalchemy
fpm --verbose -s python -t deb sqlalchemy
# Here's a guide how to make this available with and S3-based debian repo
# http://xn.pinkhamster.net/blog/tech/host-a-debian-repository-on-s3.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment