Seite 1 von 1

pip wheel... ?!?

Verfasst: Donnerstag 2. Oktober 2014, 14:48
von jens
Dieses neue Rad ist irgendwie an mir unbemerkt vorüber gegangen...

Wheel ist also das neue .egg? Was ich auch nie so wirklich bewusst genutzt habe...

http://pip.readthedocs.org/en/latest/re ... wheel.html verweist auf http://wheel.rtfd.org/ ... dort steht u.a.:
The wheel format is documented as PEP 427 “The Wheel Binary Package Format...”
http://www.python.org/dev/peps/pep-0427/
Ist das ganze also nur interessant, wenn man Binär-Pakete erstellt, damit diese dann schneller installiert werden können?
Also für pure-Python Dinge uninteressant?

Re: pip wheel... ?!?

Verfasst: Freitag 3. Oktober 2014, 23:15
von DasIch
Auch pure Python Pakete lassen sich als Wheels wesentlich schneller installieren.

Re: pip wheel... ?!?

Verfasst: Mittwoch 8. Oktober 2014, 09:56
von jens
Ah, nun habe ich das erstmal geschnallt: http://pythonwheels.com/ ist ein guter Anlaufpunkt...

Eigentlich geht's auch recht einfach:

Code: Alles auswählen

~$ pip install wheel --user
~/somewhere $ python setup.py sdist bdist_wheel upload
Gleich mal probiert... Bei https://pypi.python.org/pypi/DragonPyEmulator/0.3.0 steht allerdings bei "Python Wheel" bzw. bei "Py Version": 2.7
Ist aber auch 3.x kompatibel.

In meiner setup.py ( https://github.com/jedie/DragonPy/blob/master/setup.py ) steht u.a.:

Code: Alles auswählen

 "Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
Fehlt noch was?

Re: pip wheel... ?!?

Verfasst: Mittwoch 8. Oktober 2014, 11:32
von jens
Wer lesen kann, ist klar im Vorteil:
Note: If your project is python 2 and 3 compatible you can create a universal wheel distribution. Create a file called setup.cfg with the following content and upload your package.

Code: Alles auswählen

    [bdist_wheel]
    universal = 1
:D

Re: pip wheel... ?!?

Verfasst: Freitag 10. Oktober 2014, 00:39
von Leonidas
Auf welchen Monty Python-Sketch spielt eigentlich der Name "Wheel" an?

Re: pip wheel... ?!?

Verfasst: Freitag 10. Oktober 2014, 01:10
von BlackJack
@Leonidas: Käselaib auf englisch: „wheel of cheese”. Und Käse bekommt man im „cheese shop” (oder auch nicht ;-)).

Re: pip wheel... ?!?

Verfasst: Freitag 10. Oktober 2014, 19:40
von Leonidas
Ahh, das leuchtet ein :-)