Skip to content
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

scripts/pythondistdeps: Only add setuptools requirement for egg-info … #973

Merged

Conversation

gordonmessmer
Copy link
Contributor

scripts/pythondistdeps: Only add setuptools requirement for egg-info packages.

This should address issue #954

@ignatenkobrain
Copy link
Contributor

LGTM. @hroncok r?

@ffesti ffesti merged commit 82971c6 into rpm-software-management:master Dec 12, 2019
@ffesti
Copy link
Contributor

ffesti commented Dec 12, 2019

Pretty straight forward.

Copy link
Contributor

@hroncok hroncok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Damn GitHub reviews, this comment was hanging here for 23 days. Sorry about that.

dist.get_entry_map('gui_scripts')):
if ((dist.get_entry_map('console_scripts') or
dist.get_entry_map('gui_scripts')) and
(lower.endswith('.egg') or
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know about egg. Can it even have entrypoints?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think so... If I "bdist_egg" the molecule package, and then install the resulting egg, the console_script is installed. However, I don't get useful results from this script on egg files. I'm unclear on whether we ever package egg (or wheel) files, so I'm not actually sure whether that's something that needs to be reviewed and fixed, or dropped.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK. we can keep it be, until proven otherwise.

jollaitbot pushed a commit to sailfishos-mirror/python-rpm-generators that referenced this pull request Apr 14, 2020
 - Handle version ending with ".*"
 - Handle compatible-release operator "~="
 - Use rich deps for semantically versioned dependencies
 - Match Python version if minor has multiple digits (e.g. 3.10)
 - Only add setuptools requirement for egg-info packages

rpm-software-management/rpm#951
rpm-software-management/rpm#973
rpm-software-management/rpm#982

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1758141
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1777382
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants