Skip to content

Use Wheels on PyPI #91

Closed
Closed

Description

@blink1073

Right now, pip install imageio downloads the Linux tarball and associated freeimage library. Wheels are preferred downloads for pip.

Activity

  1. blink1073 commented on Jul 7, 2015

    @blink1073
    Author

    This does the trick:

    $ export IMAGEIO_PLAT=linux64; python setup.py bdist_wheel
    if 'bdist_wheel' in sys.argv:
        # 'linux64', 'linux32', 'win64', 'win32', 'osx64']:
        import imageio
        import os
        resource_dir = imageio.core.resource_dirs()[0]
        _set_crossplatform_resources(resource_dir)
        _set_platform_resources(resource_dir, os.environ['IMAGEIO_PLAT'])
  2. blink1073 commented on Jul 7, 2015

    @blink1073
    Author

    The resulting file would have to be renamed for the appropriate platform.

  3. blink1073 commented on Jul 7, 2015

    @blink1073
    Author
  4. almarklein commented on Jul 7, 2015

    @almarklein
    Member

    So we can build the wheels for all platforms from a single box?

  5. blink1073 commented on Jul 7, 2015

    @blink1073
    Author

    Yessir

  6. almarklein commented on Jul 7, 2015

    @almarklein
    Member

    Oh wait, if I read your first earlier more closely, a wheel is really just a .tar.gz that has platform specific resources and is renamed to.whl?

  7. blink1073 commented on Jul 7, 2015

    @blink1073
    Author

    That's it. 

    —
    Sent from Mailbox

    On Tue, Jul 7, 2015 at 11:24 AM, Almar Klein [email protected]
    wrote:

    Oh wait, if I read your first earlier more closely, a wheel is really just a .tar.gz that has platform specific resources and is renamed to.whl?

    Reply to this email directly or view it on GitHub:
    #91 (comment)

  8. blink1073 commented on Jul 7, 2015

    @blink1073
    Author

    It creates a imageio-1.3.dist-info folder in the tar file.

  9. blink1073 commented on Jul 7, 2015

    @blink1073
    Author

    Want me to take a stab at it?

  10. almarklein commented on Jul 7, 2015

    @almarklein
    Member

    Yes, please, if you have some free cycles :)

  11. blink1073 commented on Jul 7, 2015

    @blink1073
    Author

    What are conferences for 😄

  12. blink1073 commented on Jul 7, 2015

    @blink1073
    Author

    I'm calling this a dead end, see #108.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions