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

Unneeded dependency: macholib #145

Closed
Enchufa2 opened this issue Jan 26, 2022 · 5 comments · Fixed by #170
Closed

Unneeded dependency: macholib #145

Enchufa2 opened this issue Jan 26, 2022 · 5 comments · Fixed by #170
Labels
Milestone

Comments

@Enchufa2
Copy link

Is macholib required? I was trying to package this for Fedora, and I was confused, because the build instructions do not include this library, but the poetry lock lists it.

@truthinhoney
Copy link

Yes, macholib is required.

@Enchufa2
Copy link
Author

Sorry to insist, but are we sure? Because a grep shows that this is only referenced in poetry.lock and pyproject.toml, but nowhere else.

@truthinhoney
Copy link

I asked https://fedoraproject.org/wiki/User:Ankursinha and he told me that it should be required since it is mentioned in pyproject.toml, but he also said to wait for upstream developer to give proper answer.

Honestly I barely know anything about packaging or programming so I am not certain that it is required lol.

Thank you for attempting to package this for Fedora! :)

@gmarmstrong
Copy link
Contributor

I believe macholib is just an unused remnant from when pyobjc-core (which depends on macholib) was added. macholib was automatically added to the Pipfile.lock, and it looks like it made its way into the pyproject.toml dependencies when the switch was made from pipenv to poetry. The pyobjc-core dependency was eventually removed, but macholib remained. Removing it from the poetry environment now doesn't cause any problems, and I can even rebuild the container and macOS app on a Mac without macholib. The entry (if kept at all) should probably be something like:

[tool.poetry.dev-dependencies]
macholib = {version = "*", platform = "darwin", optional=true}

I'm not a maintainer, so take that with a grain of salt.

@gmarmstrong
Copy link
Contributor

gmarmstrong commented Jun 15, 2022

Ah, macholib is also a dependency of pyinstaller, which is only needed for platform = "darwin" (macOS). Found that out through poetry show --tree. Still, no need for it to be explicitly listed as a dangerzone dependency.

gmarmstrong added a commit to gmarmstrong/dangerzone that referenced this issue Jun 15, 2022
@deeplow deeplow changed the title Linux packaging Unneeded dependency: macholib Aug 18, 2022
@deeplow deeplow added this to the 0.3.2 milestone Aug 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants