#9616: bdist_rpm fails in 1.0.1 - version names with hyphens are not compatible
with rpm specs
------------------------------------+---------------------------------------
          Reporter:  tome           |         Owner:  mtredinnick          
            Status:  assigned       |     Milestone:                       
         Component:  Uncategorized  |       Version:  1.0                  
        Resolution:                 |      Keywords:  rpm, bdist_rpm, setup
             Stage:  Unreviewed     |     Has_patch:  0                    
        Needs_docs:  0              |   Needs_tests:  0                    
Needs_better_patch:  0              |  
------------------------------------+---------------------------------------
Changes (by mtredinnick):

  * owner:  nobody => mtredinnick
  * status:  new => assigned

Comment:

 So, a key factor in this ticket is the Python version involved, which
 hasn't been mentioned. Over the years, bdist_rpm has been made more and
 more robust as people have used it, making it operate in line with rpm's
 requirements, whilst still accepting normal-looking input (for example,
 versions containing hyphens, which are pretty common in practice).

 Thus, python 2.5 has no problems with Django's version string, since it
 puts both version_info (with hyphens replaced by underscores) and
 unmangled_version_info (the original string, used to construct the
 `Source0` line in the spec file). Python 2.4 and earlier didn't do this.
 So I'd have to guess that the two people seeing this problem are using
 earlier versions of Python.

 I'll have a think about whether there's something we can do for those
 versions when bdist_rpm is running, since I'd like this to work.
 Restricting our version strings just to avoid this one particular,
 relative edge-case (building rpms on older versions of Python) isn't a
 solution, but we might be able to do something in setup.py.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/9616#comment:6>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to