homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: distutils documentation says Extension has "optional" argument
Type: Stage: resolved
Components: Documentation Versions: Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: eric.araujo Nosy List: docs@python, eric.araujo, python-dev, tebeka
Priority: normal Keywords:

Created on 2012年01月25日 21:04 by tebeka, last changed 2022年04月11日 14:57 by admin. This issue is now closed.

Messages (4)
msg151974 - (view) Author: Miki Tebeka (tebeka) * Date: 2012年01月25日 21:04
The Extension documentation says:
--------
2.3.5. Other options
There are still some other options which can be used to handle special cases.
The optional option is a boolean; if it is true, a build failure in the extension will not abort the build process, but instead simply not install the failing extension.
---------
However there not such option, and distutils will complain:
/usr/lib/python2.7/distutils/extension.py:133: UserWarning: Unknown Extension options: 'optional'
msg152508 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2012年02月03日 13:48
It was me who ported that doc change from 3.2, but distutils in 2.7 does not provide that feature. Thanks for catching it, I’ll revert the commit when I get the chance.
msg153022 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2012年02月10日 04:32
New changeset cf1c466ee9e0 by Éric Araujo in branch '2.7':
distutils 2.7’s Extension does not support optional (#13865).
http://hg.python.org/cpython/rev/cf1c466ee9e0 
msg153023 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2012年02月10日 04:36
Fixed, cheers!
History
Date User Action Args
2022年04月11日 14:57:26adminsetgithub: 58073
2012年02月10日 04:36:23eric.araujosetstatus: open -> closed
resolution: fixed
messages: + msg153023

stage: resolved
2012年02月10日 04:32:26python-devsetnosy: + python-dev
messages: + msg153022
2012年02月03日 13:49:01eric.araujosetassignee: docs@python -> eric.araujo
2012年02月03日 13:48:47eric.araujosetnosy: + eric.araujo
messages: + msg152508
2012年01月25日 21:05:12tebekasetassignee: docs@python

nosy: + docs@python
components: + Documentation
versions: + Python 2.7
2012年01月25日 21:04:52tebekacreate

AltStyle によって変換されたページ (->オリジナル) /