Python wheel modules

Mario Gonzalez <[email protected]> Fri, 11 Dec 2015 16:11:48 -0300
Newsgroups gmane.text.yaml.general
Organization Oracle corp
Message-ID <[email protected]>
Hello there, I'm new here,

We started to create a "wheel" package for pyyaml and we realize that in 
terms of packaging and distribution, the project is using distutils. I'm 
sending a small patch to allow the creation of .whl files, which is a 
binary distribution with the C extensions compiled already.

This helps in terms of reducing the time to just compile once but 
install in many places, and also, in those many places, you don't need 
any development headers not tools.

Do you think we can include this in the next versions?
Thanks in advance for your coments!

(I didn't know if this list accepts attachments, sorry for the noise)
diff -r ddf211a41bb2 setup.py
--- a/setup.py  Fri Nov 28 11:53:36 2014 -0600
+++ b/setup.py  Fri Dec 11 19:00:07 2015 +0000
@@ -59,8 +59,15 @@

  import sys, os.path

+# Importing setuptools will allow to create python wheels and provides
+# the 'bdist_wheel' command.
+try:
+    from setuptools import setup
+except ImportError:
+    from distutils import setup
+
  from distutils import log
-from distutils.core import setup, Command
+from distutils.core import Command
  from distutils.core import Distribution as _Distribution
  from distutils.core import Extension as _Extension
  from distutils.dir_util import mkpath

------------------------------------------------------------------------------