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

Drop setuptools dependency #692

Merged
merged 1 commit into from
Oct 8, 2020
Merged

Conversation

mathiascode
Copy link
Member

@mathiascode mathiascode commented Oct 2, 2020

The only reason I opted to use setuptools previously was due to find_packages. However, the single-version-externally-managed option, which we need to install files to the correct folders on the system, has caused a lot of pain so far, as it's not recognized by pip. Drop the setuptools dependency in favor of distutils, and use our own method of finding the correct packages and package data.

Pretty sure the introduction of setuptools also causes an issue where Nicotine+ is installed to /usr/lib/python3.X/dist-packages instead of /usr/lib/python3/dist-packages.

Fixes #531

@kiplingw
Copy link
Member

kiplingw commented Oct 2, 2020

Thanks @mathiascode. But isn't setuptools the successor to distutils?

@mathiascode
Copy link
Member Author

That's correct, and distutils will most likely be removed from the standard libraries in a few years. However, since issues like this have occurred recently, and the whole situation is a bit uncertain due to patches by Debian and other distros right now, I'm more inclined to stick with distutils for now, and look into setuptools or completely different build systems when the time is right.

@kiplingw
Copy link
Member

kiplingw commented Oct 2, 2020

Hmm, I'm not sure what to suggest. On the one had I don't want us to be dependant on a broken tool. On the other I don't think migrating back to a tool that is slated for removal is helpful either. We're not in any rush, so I'm going to leave this open for a week for open discussions and time for you to also think about it.

@kiplingw
Copy link
Member

kiplingw commented Oct 6, 2020

@mathiascode, can you resolve your conflicts and verify CI?

@mathiascode
Copy link
Member Author

Done.

@kiplingw
Copy link
Member

kiplingw commented Oct 6, 2020

Hmm, still breaking on Windows.

@mathiascode
Copy link
Member Author

Strange, I'll retry at some point tomorrow.

@mathiascode mathiascode force-pushed the distutils branch 3 times, most recently from 08740cc to 94bac21 Compare October 8, 2020 21:05
@mathiascode mathiascode marked this pull request as draft October 8, 2020 21:34
@mathiascode mathiascode force-pushed the distutils branch 4 times, most recently from 10c8f05 to 993ed96 Compare October 8, 2020 22:42
@mathiascode mathiascode marked this pull request as ready for review October 8, 2020 23:06
@mathiascode
Copy link
Member Author

Alright, got it sorted out.

@kiplingw kiplingw merged commit 3f39b94 into nicotine-plus:master Oct 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

running from source - missing reqs
2 participants