Code Monkey home page Code Monkey logo

Comments (4)

aresch avatar aresch commented on August 11, 2024

Wheels? What?

from pyenet.

ahicks92 avatar ahicks92 commented on August 11, 2024

The new Python packaging format. Lets you upload binaries to Pypi for Windows, Mac, and Linux (but Linux has some limits. Should work for this package though). People don't need to follow build instructions and/or even have a C compiler if you use them. It makes pip install foo always work, as long as foo has a wheel matching my platform and version of Python. Essentially, it can make your package behave like a pure Python dependency. It's been built into Python for a while now.

Having a C compiler is difficult on Windows at least. I can't speak to Mac, as I don't use the platform. People will eventually install a C compiler, of course. But 2.7 now requires you to go out of your way to get it via a special download specifically for Python from Microsoft. 3.5 requires you to install VS2015, which takes an entire day for me and most people I know. For anything requiring unusual libraries or interesting build steps, it's helpful even then: with a wheel matching my version of Python, I don't have to do anything.

I'd just fork and make whatever changes need to be made, but only the package owner can actually upload them, so it's not worth it without making an issue and getting you on board first. I can write you a script that uses the Python 3 launcher to iterate through all possible Python combinations to build the wheels, skipping any that aren't installed. Then you just have to upload as usual. I can't easily automate Mac in the same manner, as my familiarity with the platform is sadly lacking.

This would be really helpful for the newbie experience. Enet is probably one of the most useful libs for games out there. I'm not aware of many other options that do what it does.

from pyenet.

aresch avatar aresch commented on August 11, 2024

Is it possible to do this on Linux? I don't have access to or really know how to use Windows.

from pyenet.

ahicks92 avatar ahicks92 commented on August 11, 2024

No. You need access to Windows to build them. There might be a cross compilation procedure, but I don't know of it. There is a new type of wheel for Linux but it's very new and obviously only works on Linux.

I tried installing this from Pypi this morning. In order to get this package on Windows, you have to clone it and follow the build instructions yourself. The Pypi upload is useless for Windows platforms. If I believe pip, this package flat out doesn't work.

You could get Appveyor to do it. Appveyor is free for OSS stuff. Personally, I don't want to go that far: it's overkill for the situation and a lot of work. If you have a Windows machine and the packlage builds, it's only a few commands at a terminal.

from pyenet.

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.