public
Last active

Python bdist_wheel (binary package format) demo

  • Download Gist
wheeldemo.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
#!/bin/sh
# bdist_wheel demo
 
# Create environment
virtualenv /tmp/wheeldemo
cd /tmp/wheeldemo
 
# Install wheel and patched pip, distribute
bin/pip install -e hg+https://bitbucket.org/dholth/wheel#egg=wheel -e hg+https://bitbucket.org/dholth/distribute#egg=distribute -e git+https://github.com/dholth/pip.git#egg=pip
 
# Download an unpack a package and its dependencies into build/
bin/pip install --no-install pyramid
cd build
 
# Make wheels for each package
for i in *; do (cd $i; /tmp/wheeldemo/bin/python setup.py bdist_wheel); done
 
# Copy them into a repository
mkdir ../wheelbase
find . -name *.whl -exec mv {} ../wheelbase \;
cd ..
 
# Remove build dir or pip will look there first
rm -rf build
 
# Install from saved wheels
bin/pip install -f file:///tmp/wheeldemo/wheelbase pyramid

In the last line, should /tmp/ really be followed by 'wheeldoc'? Or should that read 'wheeldemo'?

You're right, it should be wheeldemo

rogererens reply@reply.github.com wrote:

In the last line, should /tmp/ really be followed by 'wheeldoc'? Or should that read 'wheeldemo'?


Reply to this email directly or view it on GitHub:
https://gist.github.com/3033186

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.