From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041111 Firefox/1.0 Description of problem: When you try to rebuild yum from the src RPM you will see that during the build process you get messages like this: c "import compileall; compileall.compile_dir('/var/tmp/yum-root//usr/lib/python2.3/site-packages/repomd', 1, '', 1)" /bin/sh: c: command not found The problem is that the line actually should look like this: pyhton -c "import compileall; compileall.compile_dir('/var/tmp/yum-root//usr/lib/python2.3/site-packages/repomd', 1, '', 1)" The "python" before the "-c" is missing. Version-Release number of selected component (if applicable): yum-2.1.12-0.fc3.src.rpm yum-2.1.12-3.src.rpm How reproducible: Always Steps to Reproduce: 1. Get yum-2.1.12-0.fc3.src.rpm or yum-2.1.12-3.src.rpm 2. rpmbuild --rebuild yum-2.1.12-0.fc3.src.rpm or yum-2.1.12-3.src.rpm 3. check the output for "/bin/sh: c: command not found" Actual Results: The result is that the .py files in the folder /usr/lib/python2.3/site-packages/repomd, /usr/lib/python2.3/site-packages/rpmUtils, /usr/lib/python2.3/site-packages/urlgrabber and /usr/lib/python2.3/site-packages/urlgrabber are not compiled (.pyc). yum works without the .pyc but I I think it would be better to have the .pyc :-). Expected Results: The .py files in the folder /usr/lib/python2.3/site-packages/repomd, /usr/lib/python2.3/site-packages/rpmUtils, /usr/lib/python2.3/site-packages/urlgrabber and /usr/lib/python2.3/site-packages/urlgrabber should compile to .pyc.
When you compile the .py files you get for the file /usr/lib/python2.3/site-packages/yum/transactioninfo.py" the error: --------------- File "transactioninfo.py", line 48 if name is not None and arch is not None and epoch is not None and ver is not ^ SyntaxError: invalid syntax --------------- I assume it should be "ver is not None" instead of "ver is not".
both fixed in upstream cvs.