GithubHelp home page GithubHelp logo

Use Wheels on PyPI about imageio HOT 12 CLOSED

imageio avatar imageio commented on June 15, 2024
Use Wheels on PyPI

from imageio.

Comments (12)

blink1073 avatar blink1073 commented on June 15, 2024

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'])

from imageio.

blink1073 avatar blink1073 commented on June 15, 2024

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

from imageio.

blink1073 avatar blink1073 commented on June 15, 2024

Hmm, it appears a less hacky way is to use from wheel.bdist_wheel import Command

https://bitbucket.org/pypa/wheel/src/f746a01eab7a673cb628a52f99c129d0d5741bcf/wheel/bdist_wheel.py?at=default

from imageio.

almarklein avatar almarklein commented on June 15, 2024

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

from imageio.

blink1073 avatar blink1073 commented on June 15, 2024

Yessir

from imageio.

almarklein avatar almarklein commented on June 15, 2024

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?

from imageio.

blink1073 avatar blink1073 commented on June 15, 2024

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)

from imageio.

blink1073 avatar blink1073 commented on June 15, 2024

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

from imageio.

blink1073 avatar blink1073 commented on June 15, 2024

Want me to take a stab at it?

from imageio.

almarklein avatar almarklein commented on June 15, 2024

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

from imageio.

blink1073 avatar blink1073 commented on June 15, 2024

What are conferences for 😄

from imageio.

blink1073 avatar blink1073 commented on June 15, 2024

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

from imageio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.