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: setup() keyword have to be list (doesn't work with tuple)
Type: Stage:
Components: Distutils Versions: Python 2.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: akuchling Nosy List: akuchling, vstinner
Priority: normal Keywords:

Created on 2006-08-23 14:49 by vstinner, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
distutils_setup_tuple.patch vstinner, 2006-08-23 14:49 Fix setup() for register command for tuple values
distutils-register.patch akuchling, 2006-10-06 13:20 2.1-compatible version of the patch.
Messages (5)
msg29619 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2006-08-23 14:49
Code:
====================== 8< =====================
from distutils.core import setup
setup(..., classifier=('Intended Audience :: 
Developers', 'Environment :: Console :: 
Curses'), ...)
====================== 8< =====================

The query: "./setup.py register" will create HTML 
request:
----------------GHSKFJDLGDS7543FJKLFHRE75642756743254
Content-Disposition: form-data; name="classifiers"

('Intended Audience :: Developers', 'Environment :: 
Console :: Curses')

Instead of a multipart part for each value.

====

The bug is stupid, see attached patch.

Haypo
msg29620 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2006-10-06 13:20
Logged In: YES 
user_id=11375

Fix applied to trunk in rev. 52211; I'll backport to 2.5 and
2.4.  

The Distutils code is intended to be compatible with Python
2.1, so I've reworked the change to keep using type()
instead of isinstance().  Patch attached.

msg29621 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2006-10-06 16:12
Logged In: YES 
user_id=365388

Ok nice ;-)
msg29622 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2006-10-09 17:13
Logged In: YES 
user_id=11375

Committed to 2.5-main in rev. 52243.
msg29623 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2006-10-09 17:16
Logged In: YES 
user_id=11375

Committed to 2.4-maint in rev. 52244.

Closing.  Thanks for the bug report!
History
Date User Action Args
2022-04-11 14:56:19adminsetgithub: 43880
2006-08-23 14:49:51vstinnercreate