New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bdist_rpm does not list dist files (should effect upload) #47194
Comments
In Python 2.5 distutils has a bug in bdist_rpm: Generated distribution files are not listed in I need this bug fixed for automated upload of files using Enclosed please find a simple package to show the bug. Just run
and watch the (missing) output. In contrast see the output of
Additionally: |
Tarek, can this bug be fixed or is it outdated? IOW, is bdist_rpm officially discouraged or do you still accept bugfixes for it? |
Even thought bdist_rpm is gone from distutils2, this is a bug that can be fixed in distutils. Adding the easy keyword to let potential contributors find this bug; hint: look at how bdist_dumb registers distributions with dist.dist_files. |
I found that bdist_rpm wasn't registering distributions with dist.dist_files at all. The attached patch should be all that's needed to fix this. |
Great! Could you add a test for this? By the way, do you have a machine with rpm installed? I don’t, so I won’t be able to test the patch. |
Here's a patch for test_bdist_rpm.py and to check the contents of dist.dist_files |
Adding a patch for 2.7 |
Looks good. Do you have rpm on your machine? If yes, have you run the tests successfully? |
Yeah I installed rpm and have run the tests successfully. |
FYI I have committed the patch to my repo and will push as soon as I can. |
New changeset 26aea1825418 by Éric Araujo in branch '3.2': New changeset 1cb9b8126534 by Éric Araujo in branch 'default': |
New changeset f606d722ca23 by Éric Araujo in branch '2.7': |
Fixed in 2.7 too, thanks to you both. If you have the time to run the tests, it would be great to get a confirmation (I’m not sure we have a buildbot with rpm installed for 2.7). |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: