Repository navigation
Make wheels - #108
Make wheels#108
Conversation
|
OSX is being irrationally difficult. My 2 cents would be to include the OSX library in the tarball and provide the other wheels. |
|
I'm going to take a break from this: it is maddening. |
|
Apparently PyPI completely blocks Linux wheels at the moment... |
|
I'm calling this a dead end. |
|
Arg. Why is it so hard? Aren't many packages building and uploading wheels? |
|
"Why is it so hard" not meant as a personal thing, but more like why is setuptools/pypi not making this easy for us... |
|
Okay, updated thoughts: |
|
Note to self: |
|
Here's my dist directory after running $ ll dist
total 95336
-rw-r--r-- 1 ssilvester staff 4766656 Jul 9 11:05 imageio-1.3-cp27-none-macosx_10_5_x86_64.whl
-rw-r--r-- 1 ssilvester staff 4434964 Jul 9 11:05 imageio-1.3-cp27-none-win_amd64.whl
-rw-r--r-- 1 ssilvester staff 4766656 Jul 9 11:05 imageio-1.3-cp34-none-macosx_10_5_x86_64.whl
-rw-r--r-- 1 ssilvester staff 4434964 Jul 9 11:05 imageio-1.3-cp34-none-win_amd64.whl
-rw-r--r-- 1 ssilvester staff 5043110 Jul 9 11:06 imageio-1.3-linux32.zip
-rw-r--r-- 1 ssilvester staff 5114168 Jul 9 11:06 imageio-1.3-linux64.zip
-rw-r--r-- 1 ssilvester staff 4820461 Jul 9 11:06 imageio-1.3-osx64.zip
-rw-r--r-- 1 ssilvester staff 3205861 Jul 9 11:04 imageio-1.3-py3-none-any.whl
-rw-r--r-- 1 ssilvester staff 4290741 Jul 9 11:06 imageio-1.3-win32.zip
-rw-r--r-- 1 ssilvester staff 4488877 Jul 9 11:06 imageio-1.3-win64.zip
-rw-r--r-- 1 ssilvester staff 3231393 Jul 9 11:06 imageio-1.3.tar.gz
-rw-r--r-- 1 ssilvester staff 199552 Jul 9 11:06 imageio-1.3.zip |
|
No wheels for Linux? |
|
And what about 32bit? If its a matter of adding a few lines to make that work, why not? Or is there a problem I am overlooking? I'd like to get rid of the sdist_all option if wheels work ok enough. |
|
PyPI does not accept wheels for "Linux", so the the minimum set you could get is: win32 wheels My intent with the previous list was to only provide eggs for the most common cases, and |
|
But in our case the cp34 wheels are exactly the same as our cp33 wheels since the binaries are not bound to a specific Python version. Can we just copy+rename in these cases? |
|
Producing the wheels is not the problem, its just thriwing more build options together. Want me to add all possible valid combinations? — On Mon, Jul 13, 2015 at 3:41 AM, Almar Klein [email protected]
|
|
What do you mean by build options? Can we not just have Or is the python version also included as meta info inside the wheel? |
|
Ah, yes, that will work because when it builds we have the following created file: $ cat WHEEL
Wheel-Version: 1.0
Generator: bdist_wheel (0.24.0)
Root-Is-Purelib: true
Tag: py2-none-any
Tag: py3-none-anySo it will grab the correct file based on name and install no matter what the underlying platform is. |
|
Here's what the Pillow files look like: |
|
And for whatever reason the 2.7 Mac wheel is different:
|
|
Let's bear in mind that |
|
I'm trying to build a wheel-building repo : I can now build (on travis) a dual arch Freeimage dylib, that should work on OSX 10.6, as OSX wheels require. But - where should I copy this dylib into the imageio directory tree in order to build the wheel? I currently copy into the |
|
Building OK now, but lots of test errors: https://travis-ci.org/MacPython/imageio-wheels/builds/70906322 |
|
Yep: $ pip install imageio-1.3-cp27.cp34-none-macosx_10_5_x86_64.whl
Requirement already satisfied (use --upgrade to upgrade): imageio==1.3 from file:///Users/ssilvester/workspace/imageio/dist/imageio-1.3-cp27.cp34-none-macosx_10_5_x86_64.whl in /Users/ssilvester/anaconda/lib/python3.4/site-packages |
|
@almarklein, I switched to The three failures in |
|
@blink1073 is that testing with a wheel or something? Not sure what to do with avbin. Maybe mark as known fails for now? Any idea why tempfile is imported? If it is expected, you can modify that test to ignore it. |
|
@almarklein, those tests were on my local install on OSX 10.10.5. |
|
But the Travis run, was it on imageio + modifications? I mean, so far Travis ran through the avbin tests ok. Any idea why not now? |
|
I assumed the MacPython builds were running on OSX, is that right @matthew-brett? |
|
Yes, right, they are running on an 10.9 OSX VM. |
|
Ah, I did not realize it was a Travis mac run. I say just disable avbin tests on OSX for now. It's interesting though, because the person who contributed tje avbin plugin is a mac user. |
|
I don't think skipping the tests is the right way to go, if the plugin can't read properly on OSX, it should at least indicate this to the user rather than failing because it can't read the metadata. |
|
So, are you suggesting to catch this error and raise using an exception with a more descriptive message? |
|
Yeah, I think that is a fair compromise. |
|
The problem is in the use of the alpha version of libavbin. I downloaded |
|
@almarklein, would you accept a PR to this repo and imageio-binaries with version 10? |
|
I just did :) |
|
We now have http://a365fff413fe338398b6-1c8a9b3114517dc5fe17b7c3f8c63a43.r19.cf2.rackcdn.com/imageio-1.3-py2-none-any.whl, which should be valid as |
|
I verified that the wheel installs for me and functions correctly. |
|
Also works on python 3.5 if I add that to the name 😄 |
|
Sweet! How is it generated? Can we do t from imageio's setup.py? |
|
The wheel is generated by https://github.com/MacPython/imageio-wheels, we just need to update the submodule when we want to build a new version, then grab the wheel and rename it. |
|
and then manually update that wheel to pypi? |
|
@matthew-brett, how do you deploy the OSX wheels for scikit-image? |
|
I used the |
|
Sounds reasonable, I'd need to update the file name in MacPython/imageio-wheels. |
|
Sweet! Does this mean the wheel-building is ready? Maybe we should document somewhere (in setup.py?) how we can build and deploy the wheels. |
|
IMHO, we should just use |
Fixes #91.