Last active
August 29, 2015 14:03
-
-
Save ikatson/21e80a7e0b3e99a78ef6 to your computer and use it in GitHub Desktop.
fpm install native python packages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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