Patches item #1360200, was opened at 2005-11-18 15:41 Message generated for change (Comment added) made by jafo You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1360200&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. >Category: Distutils and setup.py >Group: Python 2.6 Status: Open Resolution: None Priority: 5 Submitted By: jared jennings (sarynx) Assigned to: Sean Reifschneider (jafo) Summary: bdist_rpm still can't handle dashes in versions Initial Comment: I tried to use Python 2.4.2 to create a bdist_rpm of setuptools, whose version string was 0.6a9dev-r41475. The distutils/command/bdist_rpm module's _make_spec_file method mangled the version to 0.6a9dev_r41475 (line 370). Then when the spec file was being built by rpmbuild, it looked for the sdist named setuptools-0.6a9dev_r41475.tar.gz, which didn't exist: it was called setuptools-0.6a9dev-r41475.tar.gz (note dash). So you have to mangle the version to make rpm happy - but you can't expect the sdist to have the mangled version as part of its name. I looked at the nightly Python source as of 17 Nov 2005 and saw that this bug still exists in the development version of Python. A patch is attached which fixed this bug for me. ---------------------------------------------------------------------- >Comment By: Sean Reifschneider (jafo) Date: 2006-09-02 23:25 Message: Logged In: YES user_id=81797 This patch looks good to me. I checked in python-trunk and it still seems to need to be fixed. I'd recommend it gets checked in for the 2.6 release. I'd like one of the distutils people to confirm this though. ---------------------------------------------------------------------- Comment By: Neal Norwitz (nnorwitz) Date: 2005-11-21 02:17 Message: Logged In: YES user_id=33168 Sean, you seem to know a lot more about rpms than most of us. Any comment on this approach? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1360200&group_id=5470 _______________________________________________ Patches mailing list Patches@python.org http://mail.python.org/mailman/listinfo/patches