Skip to content

Instantly share code, notes, and snippets.

@jordansissel
Created February 24, 2014 18:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jordansissel/9194469 to your computer and use it in GitHub Desktop.
Save jordansissel/9194469 to your computer and use it in GitHub Desktop.
mkdir /tmp/example
pip install -d /tmp/example flask
for i in *.tar.gz; do
tar -zxf $i
fpm -s python -t rpm ${i%%.tar.gz}
done
ls *.rpm
----
python-flask-0.10.1-1.noarch.rpm python-markupsafe-0.18-1.x86_64.rpm
python-itsdangerous-0.23-1.noarch.rpm python-werkzeug-0.9.4-1.noarch.rpm
python-jinja2-2.7.2-1.noarch.rpm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment