Instructions to use the docker and make wheels without Travis #1802
Replies: 14 comments
-
| From what I can see: 
 | 
Beta Was this translation helpful? Give feedback.
-
| 
 | 
Beta Was this translation helpful? Give feedback.
-
| Here's my version, expanding on @techtonik's a bit: docker run -it -v $(pwd):/io quay.io/pypa/manylinux1_x86_64
# following, roughly, https://github.com/pypa/python-manylinux-demo/blob/master/travis/build-wheels.sh
PYBIN=/opt/python/cp36-cp36m/bin
for whl in wheelhouse/*.whl; do
    auditwheel repair "$whl" -w /io/wheelhouse/
done
cp wheelhouse/*.whl /io/wheelhouse/Lots of wheels, including the desired one, will be in  | 
Beta Was this translation helpful? Give feedback.
-
| I've followed the instructions so far: But I don't see a  | 
Beta Was this translation helpful? Give feedback.
-
| Creating a wheelhouse directory in your working directory might do the
trick.… On 1/7/19 4:26 PM, Geoffrey Fairchild wrote:
 I've followed the instructions so far:
 |docker pull quay.io/pypa/manylinux1_x86_64 docker run -it -v $(pwd):/io
 quay.io/pypa/manylinux1_x86_64 |
 But I don't see a |wheelhouse| directory that you guys seem to have when
 I'm in the container. Is there something I need to do first to create
 the directory?
 —
 You are receiving this because you commented.
 Reply to this email directly, view it on GitHub
 <#73 (comment)>, or
 mute the thread
 <https://github.com/notifications/unsubscribe-auth/AmFA1ssM9NJBZ1bXDStzJpcLixGHRSltks5vA7uCgaJpZM4I47L1>.
 | 
Beta Was this translation helpful? Give feedback.
-
| But the script you posted above expects  for whl in wheelhouse/*.whl; do
    auditwheel repair "$whl" -w /io/wheelhouse/
doneHow do those files get created? | 
Beta Was this translation helpful? Give feedback.
-
| Ok, I think I figured it out. From https://github.com/pypa/python-manylinux-demo/blob/master/travis/build-wheels.sh, this is key:  | 
Beta Was this translation helpful? Give feedback.
-
| This process is still unclear to me. I have a repository of Python code I need to build, I'm doing a but I don't see anything inside /io. What am I missing? | 
Beta Was this translation helpful? Give feedback.
-
| I think you'll find that starts up the container only for it close immediately. I think you want something like this: This will drop you into the container, in the bash shell, and you will be able to see  | 
Beta Was this translation helpful? Give feedback.
-
| I've run that and other flavors, and io is still empty. | 
Beta Was this translation helpful? Give feedback.
-
| Both on x86_64 and i686 versions of the container | 
Beta Was this translation helpful? Give feedback.
-
| To be explicit, I'm running on Powershell in Windows and have tried with  | 
Beta Was this translation helpful? Give feedback.
-
| Looks like it's just some Windows issue on my setup with -v | 
Beta Was this translation helpful? Give feedback.
-
| Ah - sorry - I haven't tried to use Linux containers on Windows. | 
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I saw https://github.com/pypa/python-manylinux-demo which is neat.
But it would also be nice to have instructions that I can simply run on my computer to create the wheels.
Something like:
Step 1: Install docker from the instructions at https://docs.docker.com/engine/installation/
Step 2: Pull the docker image:
docker pull quay.io/pypa/manylinux1_x86_64(For 64bit)And so on ...
The Travis build example at https://github.com/pypa/python-manylinux-demo isn't as helpful in case I want to do it locally.
Beta Was this translation helpful? Give feedback.
All reactions