document continuation
[docutils.git] / docutils / docs / dev / wheeling.txt
blob37e43801ead8204fbf636504c11d8b26362757db
1 ===========================
2  Docutils_ Building Wheels
3 ===========================
5 :Authors: engelbert gruber; open to all Docutils developers
6 :Contact: docutils-develop@lists.sourceforge.net
7 :Date: $Date$
8 :Revision: $Revision$
9 :Copyright: This document has been placed in the public domain.
11 .. _Docutils: http://docutils.sourceforge.net/
13 .. contents::
15 Abstract
16 --------
18 This document documents my trial to build python wheels from 
19 docutils. Once it is finished it might be driven into distribution or
20 release documentation.
22 Requests
23 --------
25 There is `feature request 43`_ :  Make setup.py build wheels. 
27   Just add this to setup.cfg:
29   [bdist_wheel]
30   universal = 1
32   See https://packaging.python.org/en/latest/distributing.html#universal-wheels
34   -.-.-
35   
36   Docutils is not fit for Universal Wheels. Docutils supports both Python 2 and
37   3, but with different code (we use “2to3”). This would make it a candidate
38   for "Pure Python wheels".
40   https://packaging.python.org/en/latest/distributing.html#pure-python-wheels
42 and bugs275_ : Upload wheels to pypi 
44   Currently docutils does not publish any wheels on pypi. Wheels make docutils
45   faster to install (no need to run setup.py, which for a large number of
46   packages can take some time), and is no more difficult than uploading an
47   sdist (see https://packaging.python.org/en/latest/distributing.html#wheels
48   for instructions).
50 Logbook 
51 -------
53 1. Add ``[bdist_wheel] universal = 0`` to setup.cfg.
54 2. Run ``python setup.py bdist_wheel``::
56      error: invalid command 'bdist_wheel'
58 3. setuptools is too old. Install the new one by wheel or source or pip or easy...
60 4. try wheel ... first get wheel tar.gz and unpack.
62 5. try ::
64      python2.7 wheel-0.24.0/wheel install setuptools-15.0-py2.py3-none-any.whl
66    no error. But still ``error: invalid command 'bdist_wheel'``::
68      $ python2.7 setup.py --version
69      0.12
71    Did wheel install ? If no, why no error, if yes in which place ?
73    
75 .. _bugs275: https://sourceforge.net/p/docutils/bugs/275/
76 .. _feature request 43: https://sourceforge.net/p/docutils/feature-requests/43/